[Qt-interest] Can an Qt Application contain 2 mainwindow?
Konstantin Tokarev
annulen at yandex.ru
Thu Sep 22 11:29:36 CEST 2011
22.09.2011, 13:28, "Vincent Cai" <wcai at cypress.com>:
> 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(newUi::DataUtility)//fail
>
> {
>
> ui->setupUi(this);
>
> }
>
> Could anybody help?
Qt Application certainly can have > 1 QMainWindow. Search for bug in your code.
--
Regards,
Konstantin
More information about the Qt-interest-old
mailing list