source:
trunk/examples/mdi/main.cpp@
203
Last change on this file since 203 was 2, checked in by , 20 years ago | |
---|---|
|
|
File size: 795 bytes |
Line | |
---|---|
1 | /**************************************************************************** |
2 | ** $Id: main.cpp 2 2005-11-16 15:49:26Z dmik $ |
3 | ** |
4 | ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. |
5 | ** |
6 | ** This file is part of an example program for Qt. This example |
7 | ** program may be used, distributed and modified without limitation. |
8 | ** |
9 | *****************************************************************************/ |
10 | |
11 | #include <qapplication.h> |
12 | #include "application.h" |
13 | |
14 | int main( int argc, char ** argv ) { |
15 | QApplication a( argc, argv ); |
16 | ApplicationWindow * mw = new ApplicationWindow(); |
17 | a.setMainWidget(mw); |
18 | mw->setCaption( "Qt Example - Multiple Documents Interface (MDI)" ); |
19 | mw->show(); |
20 | a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) ); |
21 | int res = a.exec(); |
22 | return res; |
23 | } |
Note:
See TracBrowser
for help on using the repository browser.