[Qt-creator] Multiple QMainWindow in one project

Justin Giles jtgiles at gmail.com
Mon Feb 16 20:05:13 CET 2009


I'm fairly new to Qt and Qt Creator.  I am creating an application where I
need to have 2 QMainWindows in the project.  1 primary window that has a
button that spawns the 2nd QMainWindow.  I tried creating this second
QMainWindow in Creator and when I compile it gives me the following compile
error (among others related to the new class):

error: invalid use of undefined type 'struct Ui::MyWindow'

Nothing has been added to the 2nd QMainWindow through creator.  I just went
through the new Designer form and class wizard to create the framework,
added it to my slot logic in the 1st qmainwindow and then tried to compile.

Thoughts?

Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090216/d7239052/attachment.html 


More information about the Qt-creator-old mailing list