0.3.1
[qanava.git] / tests / simpleqtmodel / canApp.cpp
blob8315028acbc4b3f443c8321883f5ea2d6183b448
1 //-----------------------------------------------------------------------------
2 // This file is a part of the Qarte software.
3 //
4 // \file canApp.cpp
5 // \author Benoit Autheman (benoit@libqanava.org)
6 // \date 2005 April 19
7 //-----------------------------------------------------------------------------
10 // NI headers
11 #include "canMainWindow.h"
14 // QT headers
15 #include <qapplication.h>
16 #include <qsplashscreen.h>
20 int main( int argc, char** argv )
22 // QT gui creation (Needed to allocate plugin qt components and application kernel)
23 QApplication app( argc, argv );
25 // Create main application form
26 MainWindow mainWindow( &app );
28 // Display main window and start processing events
29 mainWindow.show( );
30 app.connect( &app, SIGNAL( lastWindowClosed( ) ), &app, SLOT( quit( ) ) );
32 // Process events
33 return app.exec( );