[Qt-interest] gui qt project with a MainWindow ui and several QDockWidget ui.
Sergei Stolyarov
sergei.stolyarov at regolit.com
Sat Oct 31 22:05:56 CET 2009
It looks like you are using wrong class names, look into the generated
"ui_dockwidget1.h", there should be no Ui_Dock classes
You have to include "ui_dockwidget1.h" in the .h file. Then write in private
section of your class something like this:
private:
Ui::DockWidget1 ui; //<-- namespace "Ui"!
Then in the constructor:
ui.setupUi(this);
Or the same thing with pointers to Ui::DockWidget1 (DockWidget1 — it's a name
of class in your .ui file)
--
Best regards,
Sergei Stolyarov
More information about the Qt-interest-old
mailing list