[Qt-interest] Howto get a nested QMainWindow shows up ?
Aaron Lewis
aaron.lewis1989 at gmail.com
Wed Mar 3 08:55:08 CET 2010
Forgive me for my poor english ;-)
I have a QMainWindow , and in this class , i have a function:
sample code:
==========================================
void queryer::on_Connect()
{
Getpass my;
my.show();
}
And i put it in construct function of queryer:
queryer::queryer(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::queryer)
{
ui->setupUi(this);
setCentralWidget(ui->mainWidget);
on_Connect();
}
=========================================
Getpass is a QMainWindow , but it doesn't show up , do i forgot something ?
--
Best Regards,
Aaron Lewis - PGP: 0xA476D2E9
irc: A4r0n on freenode
More information about the Qt-interest-old
mailing list