[Qt-interest] Can an Qt Application contain 2 mainwindow?

Vincent Cai wcai at cypress.com
Thu Sep 22 11:28:47 CEST 2011


Dear all,

         I have and GUI application with is based on QMainwindow(a.ui).
         And I create the other *.ui which is also based on QMainwindow(b.ui).
When I try to open b window through menu of a window, it fail at initialization:

        DataUtility::DataUtility(QWidget *parent) :
        QMainWindow(parent),
        ui(new Ui::DataUtility)//fail
        {
                ui->setupUi(this);
}

         Could anybody help?

Thanks,
Vincent.

________________________________
This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110922/2c4dd9f2/attachment.html 


More information about the Qt-interest-old mailing list