[Qt-interest] Multiple Windows
Sean Harmer
sean.harmer at maps-technology.com
Tue Nov 17 15:28:10 CET 2009
Hi,
On Tuesday 17 Nov 2009 13:35:02 Kari Laine wrote:
> I am learning QT-Programming and I now understand howto make single
> mainwindow. But I would like to have multiple windows in my
> application. Can someone point me to the right direction please?
Just instantiate more than one QMainWindow object and show them.
int main( int argc, char* argv[] )
{
QApplication app( argc, argv );
QMainWindow* mw1 = new QMainWindow;
QMainWindow* mw2 = new QMainWindow;
mw1->show();
mw2->show();
return app->exec();
}
Sean
More information about the Qt-interest-old
mailing list