本文整理汇总了C++中QtQuick2ApplicationViewer::setMainQmlFile方法的典型用法代码示例。如果您正苦于以下问题:C++ QtQuick2ApplicationViewer::setMainQmlFile方法的具体用法?C++ QtQuick2ApplicationViewer::setMainQmlFile怎么用?C++ QtQuick2ApplicationViewer::setMainQmlFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QtQuick2ApplicationViewer
的用法示例。
在下文中一共展示了QtQuick2ApplicationViewer::setMainQmlFile方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
//viewer.setMainQmlFile(QStringLiteral("qml/NightClock/main.qml"));
viewer.setMainQmlFile(QStringLiteral("qml/NightClock/main2.qml"));
viewer.showExpanded();
return app.exec();
}
示例2: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
viewer.setMainQmlFile(QStringLiteral("qml/tv_001/main.qml"));
// viewer.showExpanded();
viewer.showFullScreen();
return app.exec();
}
示例3: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
qmlRegisterType<MQTT>("mqtt", 1, 0, "MQTT");
viewer.setMainQmlFile(QStringLiteral("qml/mqtt/main.qml"));
viewer.showExpanded();
return app.exec();
}
示例4: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
qmlRegisterType<mupServerHandle>("mupServerHandle", 1, 0, "ServerHandle");
viewer.setMainQmlFile(QStringLiteral("qml/MUP_qchartjs/main.qml"));
viewer.showExpanded();
return app.exec();
}
示例5: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
qmlRegisterType<Triangle>("com.example.qtriangleplugin", 1, 0, "Triangle");
QtQuick2ApplicationViewer viewer;
viewer.setMainQmlFile(QStringLiteral("qml/QTriangle/main.qml"));
viewer.showExpanded();
return app.exec();
}
示例6: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
qmlRegisterType<OVRVisionItem>("OVRVision", 1, 0, "OVRVision");
viewer.setMainQmlFile(QStringLiteral("qml/OVRVisionOpenCV/main.qml"));
viewer.showFullScreen();
return app.exec();
}
示例7: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
// It is a good Idea to use a URI naming scheme to specify the module package name
qmlRegisterType<VSXuAccelerometer>("org.vovoid.vsxu", 1, 0, "VSXuAccelerometer");
QtQuick2ApplicationViewer viewer;
viewer.setMainQmlFile(QStringLiteral("qml/VSXuDroid/main.qml"));
viewer.showExpanded();
return app.exec();
}
示例8: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
qmlRegisterType<GameModel>("LifeGame", 1, 0, "GameModel");
QtQuick2ApplicationViewer viewer;
viewer.setMainQmlFile(QStringLiteral("qml/LifeGameQML01/main.qml"));
viewer.showExpanded();
return app.exec();
}
示例9: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
Hash hash(viewer.rootContext());
viewer.rootContext()->setContextProperty("hash", &hash);
viewer.setMainQmlFile(QStringLiteral("qrc:/qml/pasgen/main.qml"));
viewer.showExpanded();
return app.exec();
}
示例10: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
qmlRegisterType<ConwayListModel>("com.minimoog77", 1, 0, "ConwayListModel");
QtQuick2ApplicationViewer viewer;
viewer.setMainQmlFile(QStringLiteral("qml/quickconway/main.qml"));
viewer.showExpanded();
return app.exec();
}
示例11: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
FishManager* fishManager = new FishManager(&app);
QtQuick2ApplicationViewer viewer;
viewer.setMainQmlFile(QStringLiteral("qml/FishRandomizer/main.qml"));
viewer.showExpanded();
viewer.rootContext()->setContextProperty("fishManager",fishManager);
qmlRegisterType<Fish>("Fishes",1,0,"FishObj");
return app.exec();
}
示例12: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
qmlRegisterType<OAuth2>("OAuth2",0,1,"OAuth2");
viewer.setMainQmlFile(QStringLiteral("qml/OAuthPlayground/main.qml"));
viewer.showExpanded();
return app.exec();
}
示例13: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
VideosDatabase *db = new VideosDatabase;
viewer.rootContext()->setContextProperty("videosDB", db);
viewer.setMainQmlFile(QStringLiteral("qml/app/qtquick20/main.qml")); // MAINQML
viewer.showFullScreen();
return app.exec();
}
示例14: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
viewer.addImportPath(QStringLiteral("plugins"));
viewer.setMainQmlFile(QStringLiteral("qml/Bananas/main.qml"));
viewer.showExpanded();
return app.exec();
}
示例15: main
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtQuick2ApplicationViewer viewer;
qmlRegisterType<FileTreeModel>("tk.corvinus.FileTreeModel", 1, 0, "FileTreeModel");
viewer.setMainQmlFile(QStringLiteral("qml/ImageViewer/main.qml"));
viewer.showExpanded();
return app.exec();
}