示例#1
0
文件: main.cpp 项目: eagafonov/qtmoko
int main(int argc, char *argv[])
{
    Q_INIT_RESOURCE(draggabletext);

    QApplication app(argc, argv);
    DragWidget window;
    window.show();
    return app.exec();
}
示例#2
0
int main(int argc, char *argv[])
{
    Q_INIT_RESOURCE(fridgemagnets);

    QApplication app(argc, argv);
    DragWidget window;
    window.show();
    return app.exec();
}
示例#3
0
文件: main.cpp 项目: Afreeca/qt
int main(int argc, char *argv[])
{
    Q_INIT_RESOURCE(draggabletext);

    QApplication app(argc, argv);
    DragWidget window;
#ifdef Q_OS_SYMBIAN
    window.showMaximized();
#else
    window.show();
#endif
    return app.exec();
}
int main(int argc, char *argv[])
{
    Q_INIT_RESOURCE(fridgemagnets);
    bool smallScreen = false;
    for (int i=0; i<argc; i++)
        if (QString(argv[i]) == "-small-screen")
            smallScreen = true;

    QApplication app(argc, argv);
#ifdef QT_KEYPAD_NAVIGATION
    QApplication::setNavigationMode(Qt::NavigationModeCursorAuto);
#endif
    DragWidget window;
    if (smallScreen)
        window.showFullScreen();
    else
        window.show();
    return app.exec();
}