int main(int argc, char *argv[]) { QApplication app(argc, argv); AnalogClock clock; clock.show(); return app.exec(); }
int main(int argc, char **argv) { QApplication meinProgramm(argc, argv); AnalogClock analogclock; analogclock.show(); int rueckgabe = meinProgramm.exec(); return rueckgabe; }
int main(int argc, char *argv[]) { QApplication a(argc, argv); AnalogClock w; w.show(); return a.exec(); }
int main(int argc, char *argv[]) { QApplication app(argc, argv); AnalogClock clock; #if defined(Q_OS_SYMBIAN) clock.showMaximized(); #else clock.show(); #endif return app.exec(); }
//! [create application] int main(int argc, char *argv[]) { QApplication app(argc, argv); MyDecoration *decoration = new MyDecoration(); app.qwsSetDecoration(decoration); //! [create application] //! [start application] AnalogClock clock; clock.show(); return app.exec(); }
int main( int argc, char **argv ) { QApplication a( argc, argv ); AnalogClock *clock = new AnalogClock; if ( argc == 2 && strcmp( argv[1], "-transparent" ) == 0 ) clock->setAutoMask( TRUE ); clock->resize( 100, 100 ); a.setMainWidget( clock ); clock->show(); int result = a.exec(); delete clock; return result; }