Example #1
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    AnalogClock clock;
    clock.show();
    return app.exec();
}
Example #2
0
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();
}
Example #4
0
File: main.cpp Project: BGmot/Qt
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();
}
Example #5
0
//! [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();
}
Example #6
0
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;
}