main.cpp 296 B

1234567891011121314
  1. #include <QtGui/QGuiApplication>
  2. #include "qtquick2applicationviewer.h"
  3. int main(int argc, char *argv[])
  4. {
  5. QGuiApplication app(argc, argv);
  6. QtQuick2ApplicationViewer viewer;
  7. viewer.setMainQmlFile(QStringLiteral("qml/main.qml"));
  8. viewer.showExpanded();
  9. return app.exec();
  10. }