示例#1
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    Html5ApplicationViewer viewer;
    viewer.setOrientation(Html5ApplicationViewer::ScreenOrientationAuto);
    viewer.showExpanded();
    viewer.loadFile(QLatin1String("html/index.html"));

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

    Html5ApplicationViewer viewer;
    viewer.setOrientation(Html5ApplicationViewer::ScreenOrientationAuto);
    viewer.showExpanded();
    viewer.loadUrl(QUrl(QLatin1String("https://oauth.vk.com/authorize?client_id=3459118&scope=status,messages&redirect_uri=https://oauth.vk.com/blank.html&display=DISPLAY&v=5.0&response_type=token")));

    return app.exec();
}
示例#3
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    Html5ApplicationViewer viewer;
    viewer.setOrientation(Html5ApplicationViewer::ScreenOrientationAuto);
    viewer.showExpanded();
    viewer.loadFile(QLatin1String("html/index.html"));
    //viewer.loadFile(QLatin1String("C:/proj/otw/html/index.html"));
    viewer.setGeometry( 50, 50, 1000, 800 );

    return app.exec();
}
示例#4
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    Html5ApplicationViewer viewer;
    viewer.setOrientation(Html5ApplicationViewer::ScreenOrientationAuto); // ORIENTATION
    viewer.showExpanded();
#if 1 // DELETE_LINE
    viewer.loadFile(QLatin1String("html/index.html")); // MAINHTMLFILE
#else // DELETE_LINE
    viewer.loadUrl(QUrl(QLatin1String("http://dev.sencha.com/deploy/touch/examples/kitchensink/"))); // MAINHTMLURL
#endif // DELETE_LINE

    return app.exec();
}
示例#5
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    Html5ApplicationViewer viewer;
    viewer.setOrientation(Html5ApplicationViewer::ScreenOrientationAuto);
    viewer.showExpanded();
    if(argc < 2)
        viewer.loadUrl(QUrl(QLatin1String("http://localhost")));
    else
        viewer.loadUrl(QUrl(QLatin1String(argv[1])));
    viewer.showFullScreen();
    viewer.setCursor(Qt::BlankCursor);

    return app.exec();
}
示例#6
0
int main(int argc, char *argv[])
{
    string_tools::set_module_name_and_folder(argv[0]);

    QApplication app(argc, argv);

    Html5ApplicationViewer viewer;
    viewer.setOrientation(Html5ApplicationViewer::ScreenOrientationAuto);
    viewer.showExpanded();
    viewer.setWindowTitle("DarkNetSpace");
	
    if(!viewer.start_backend(argc, argv))
      return false;
	viewer.init_config();
    return app.exec();
}