Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); qmlRegisterType<WallClockSetter>("com.indt.components", 1, 0, "WallClockSetter"); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/broadcaster/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); qmlRegisterType<FileIO, 1>("FileIO", 1, 0, "FileIO"); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/mdb1_qtproject/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); qmlRegisterType<QDeclarativeCamera>("Camera", 1, 0, "Camera"); QmlApplicationViewer viewer; viewer.setViewport(new QGLWidget()); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape); viewer.setMainQmlFile(QLatin1String("qml/photo/main.qml")); viewer.showExpanded(); return app->exec(); }
int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); QZXing::registerQMLTypes(); viewer->setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait); viewer->setMainQmlFile(QLatin1String("qml/QMLBarcodeScanner/declarative-camera.qml")); viewer->showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); QFile file( "qml/examplAndroidQML/main.qml" ); viewer->engine()->setBaseUrl(QUrl::fromLocalFile("/")); viewer->setSource(QUrl::fromLocalFile("qml/examplAndroidQML/main.qml")); viewer->showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); ServerComm sc; QmlApplicationViewer viewer; viewer.rootContext()->setContextProperty("serverComm", &sc); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/CuteSoma/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { qmlRegisterType<Settings>("org.dragly", 1, 0, "Settings"); QScopedPointer<QApplication> app(createApplication(argc, argv)); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/Bill/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); Core *core = new Core(viewer->getView()); viewer->setMainQmlFile("qrc:/qmls/qml//main.qml"); viewer->showExpanded(); core->start(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QmlApplicationViewer viewer; viewer.addImportPath(QLatin1String("modules")); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("../../KANR/qml/KANR/main.qml")); viewer.showExpanded(); Manager manager(new Sinus(), viewer.rootObject()); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QmlApplicationViewer viewer; QDeclarativeContext *ctxt = viewer.rootContext(); ctxt->setContextProperty("KipptConnector", new KipptConnector()); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/klippr/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); qmlRegisterType<QmlObject>("MyObjects", 1, 0, "MyObject"); qmlRegisterType<ProjectListModel>("MyObjects", 1, 0, "ProjectListModel"); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/qml_keepgoing_proto/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/ginger/main.qml")); //viewer.setMainQmlFile(QLatin1String("qml/ginger/qmlselection.qml")); viewer.setMinimumSize(QSize(640,390)); viewer.setMaximumSize(QSize(640, 390)); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); Mer mer; mer.showFullScreen(); /* QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer->setMainQmlFile(QLatin1String(":qml/merux/main.qml")); viewer->showExpanded(); */ return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); qmlRegisterType<Chart>("Chart", 1, 0, "Chart"); qmlRegisterType<Line>("Line", 1, 0, "Line"); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/Charts/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create()); shortcutMaker sm; QDeclarativeContext *ctxt = viewer->rootContext(); ctxt->setContextProperty("sm", &sm); viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer->setMainQmlFile(QLatin1String("qml/quickApp/main.qml")); viewer->showExpanded(); return app->exec(); }
int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QCoreApplication::setApplicationName("Test QML"); qmlRegisterType<VlcQMLVideoPlayer>("VLCQt", 0, 6, "VlcVideoPlayer"); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile("qml/video.qml"); viewer.setResizeMode(QDeclarativeView::SizeViewToRootObject); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait); viewer.setMainQmlFile(QLatin1String("qml/aeroUInokia/mainLoader.qml")); QGraphicsObject *item = viewer.rootObject(); QObject::connect(item, SIGNAL(loadCompleted()), &viewer, SLOT(setOrientationAuto())); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); MusicShaker *shaker = new MusicShaker(); qWarning() << shaker; QmlApplicationViewer viewer; viewer.rootContext()->setContextProperty("shaker", shaker); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/musicshaker/main.qml")); viewer.showExpanded(); return app->exec(); }
void DESFireEV1Commands::createApplication(boost::shared_ptr<DESFireLocation> location, DESFireKeySettings settings, int maxNbKeys) { boost::shared_ptr<DESFireEV1Location> evlocation = boost::dynamic_pointer_cast<DESFireEV1Location>(location); if (evlocation) { if (!createApplication(location->aid, settings, maxNbKeys, evlocation->useISO7816 ? FIDS_ISO_FID : FIDS_NO_ISO_FID, evlocation->cryptoMethod, evlocation->useISO7816 ? evlocation->applicationFID : 0)) { THROW_EXCEPTION_WITH_LOG(LibLogicalAccessException, "Can't create the application."); } } else { DESFireCommands::createApplication(location, settings, maxNbKeys); } }
int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); qmlRegisterType<TileData>(); Core* game = new Core; QmlApplicationViewer viewer; viewer.engine()->rootContext()->setContextObject(game); viewer.engine()->rootContext()->setContextProperty("core", game); viewer.addImportPath(QLatin1String("modules")); // ADDIMPORTPATH viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait); // ORIENTATION viewer.setMainQmlFile(QLatin1String("qml/main.qml")); // MAINQML viewer.showExpanded(); return app->exec(); }
int main(int argc, char *argv[]) { QScopedPointer<QCoreApplication> app(createApplication(argc, argv)); if (qobject_cast<QApplication*>(app.data())) { // GUI version MainWindow w; w.show(); return app->exec(); } else { // Non-GUI version QScopedPointer<CLI> console(new CLI(argc, argv, app.data())); return 0; } }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QmlApplicationViewer viewer; viewer.addImportPath(QLatin1String("imports")); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait); #ifdef Q_OS_BLACKBERRY Scoreloop scoreloop; viewer.rootContext()->setContextProperty("scoreloop", &scoreloop); #endif viewer.setSource(QUrl("qrc:/qml/game/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); app.data()->setOrganizationName("sardini"); app.data()->setApplicationName("freeboxremote"); Style style; SettingsManager settingsManager; QmlApplicationViewer viewer; viewer.rootContext()->setContextProperty("STYLE", &style); viewer.rootContext()->setContextProperty("SETTINGS_MANAGER", &settingsManager); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); manager mn; QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); app->setStartDragDistance(20); viewer.rootContext()->setContextProperty("mn", &mn); viewer.setMainQmlFile(QLatin1String("qml/hildonComponentsTest/main.qml")); viewer.showFullScreen(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); connection theconnection; QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/mynewmousec/main.qml")); viewer.rootContext()->setContextProperty("connection",&theconnection); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); qmlRegisterType<PolygonItem>("QuestItems", 1, 0, "QuestPolygon"); qmlRegisterType<QGraphicsBlurEffect>("Effects",1,0,"Blur"); // QmlApplicationViewer viewer; // viewer.addImportPath(QLatin1String("modules")); // viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); // viewer.setMainQmlFile(QLatin1String("qml/qestplayer/main.qml")); QWidget conatiner; conatiner.show(); QVBoxLayout vbLayout(&conatiner); QDeclarativeView dv; vbLayout.setMargin(0); vbLayout.addWidget(&dv); // conatiner.resize(480, 320); // conatiner.max conatiner.show(); dv.setResizeMode(QDeclarativeView::SizeRootObjectToView); dv.setSource(QUrl("qrc:/qml/qestplayer/main.qml")); // QuestRemoteCreator creator("quests", // "quest_manifest.json", // dv.rootObject(), // QuestRemoteCreator::ModeOffline); #ifdef PLAYER_RELEASE QuestRemoteCreator creator("http://matal.ru/quests", #else QuestRemoteCreator creator("http://quest:8888/quests", #endif P_MANIFEST_MAIN, dv.rootObject(), QuestRemoteCreator::ModeOnline); dv.show(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { bool simulator = isSimulator(); //expose an enum of operating systems types to QML qmlRegisterUncreatableType<OperatingSystem>("OperatingSystem", 1, 0, "OperatingSystem", ""); int OperatingSystemId = getOperatingSystem(); //expose an enum of windowing system types to QML qmlRegisterUncreatableType<WindowingSystem>("WindowingSystem", 1, 0, "WindowingSystem", ""); int WindowingSystemId = getWindowingSystem(); /* QT Simulator running on OSX gives: simulator is : true operating system is : Mac64 --> Q_OS_MAC64 windowing system is : Simulator --> Q_WS_SIMULATOR) SailfishOS Emulator hosted on OSX gives: simulator is : false operating system is : Unix --> Q_OS_UNIX windowing system is : X11 --> Q_WS_X11 Nokia N9 Harmattan gives: simulator is : false operating system is : Unix --> Q_OS_UNIX windowing system is : X11 --> Q_WS_X11 */ QScopedPointer<QApplication> app(createApplication(argc, argv)); qmlRegisterType<TelepathyHelper>("TelepathyHelper",1,0,"TelepathyHelper"); qmlRegisterType<LandedTorch>("LandedTorch",1,0,"LandedTorch"); qmlRegisterType<SatInfoSource>("SatInfoSource",1,0,"SatInfoSource"); QmlApplicationViewer viewer; viewer.rootContext()->setContextProperty("OperatingSystemId", OperatingSystemId); viewer.rootContext()->setContextProperty("WindowingSystemId", WindowingSystemId); viewer.rootContext()->setContextProperty("simulator", simulator); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/landed25/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); app->setApplicationName("CountYourScores"); app->setOrganizationName("CountYourScores"); qmlRegisterType<ReplaceableIntegerListModel> ("countyourscores",1,2,"ReplaceableIntegerListModel"); qmlRegisterType<SettingsHandler> ("countyourscores",1,2,"SettingsHandler"); QmlApplicationViewer viewer; viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/CountYourScores/main.qml")); viewer.showExpanded(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); QmlApplicationViewer viewer; viewer.setAttribute(Qt::WA_LockPortraitOrientation); Helper helper; viewer.setResizeMode(QDeclarativeView::SizeRootObjectToView); viewer.rootContext()->setContextProperty("Helper", &helper); viewer.setAttribute(Qt::WA_OpaquePaintEvent); viewer.setAttribute(Qt::WA_NoSystemBackground); viewer.viewport()->setAttribute(Qt::WA_OpaquePaintEvent); viewer.viewport()->setAttribute(Qt::WA_NoSystemBackground); viewer.setSource(QUrl("qrc:/qml/main.qml")); viewer.showFullScreen(); return app->exec(); }
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QApplication> app(createApplication(argc, argv)); WallClockObserver *obs = new WallClockObserver(QCoreApplication::instance()); if (!QDBusConnection::systemBus().registerObject(WALLCLOCK_OBSERVER_PATH, obs, QDBusConnection::ExportAllSlots)) qWarning() << "Error registering wallclock observer on D-Bus."; QmlApplicationViewer viewer; viewer.rootContext()->setContextProperty("observer", obs); viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); viewer.setMainQmlFile(QLatin1String("qml/observer/main.qml")); viewer.showExpanded(); return app->exec(); }