当前位置: 首页>>代码示例>>C++>>正文


C++ QtQuick2ApplicationViewer::setMainQmlFile方法代码示例

本文整理汇总了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();
}
开发者ID:ricardopetrere,项目名称:TCC_FTT,代码行数:11,代码来源:main.cpp

示例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();
}
开发者ID:xlazom00,项目名称:qml_epg,代码行数:11,代码来源:main.cpp

示例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();
}
开发者ID:ndesai,项目名称:qml-qmqtt,代码行数:11,代码来源:main.cpp

示例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();
}
开发者ID:kl-cruz,项目名称:MUP_client,代码行数:11,代码来源:main.cpp

示例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();
}
开发者ID:ioriayane,项目名称:startqtquick,代码行数:12,代码来源:main.cpp

示例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();
}
开发者ID:hecomi,项目名称:Outlinus,代码行数:12,代码来源:main.cpp

示例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();
}
开发者ID:voidstarr,项目名称:vsx_sensor_accelerometer,代码行数:12,代码来源:main.cpp

示例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();
}
开发者ID:osamu-k,项目名称:QtStudy,代码行数:12,代码来源:main.cpp

示例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();
}
开发者ID:jrepan,项目名称:pasgen,代码行数:12,代码来源:main.cpp

示例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();
}
开发者ID:minimoog,项目名称:quickconway,代码行数:12,代码来源:main.cpp

示例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();
}
开发者ID:maciejgrzybek,项目名称:aQuarium,代码行数:13,代码来源:main.cpp

示例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();
}
开发者ID:EnderLance,项目名称:GPlus,代码行数:13,代码来源:main.cpp

示例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();
}
开发者ID:amapig,项目名称:QtPractice,代码行数:13,代码来源:main.cpp

示例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();
}
开发者ID:AGritsevich,项目名称:sdl_core,代码行数:13,代码来源:main.cpp

示例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();
}
开发者ID:llCorvinSll,项目名称:ImageViewerQML,代码行数:13,代码来源:main.cpp


注:本文中的QtQuick2ApplicationViewer::setMainQmlFile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。