00001 #include <qapplication.h> 00002 #include "interface.h" 00003 00004 int main(int argc, char** argv) 00005 { 00006 // Read command lines arguments. 00007 QApplication application(argc,argv); 00008 00009 // Instantiate the interface. 00010 interface *main_window = new interface(); 00011 00012 // Make the viewer window visible on screen. 00013 main_window->setCaption("Interface projets image"); 00014 main_window->show(); 00015 00016 // Set the viewer as the application main widget. 00017 application.setMainWidget(main_window); 00018 00019 // Run main loop. 00020 return application.exec(); 00021 }