main.cpp 474 B

12345678910111213141516171819
  1. #include <QtGui/QApplication>
  2. #include <QDeclarativeContext>
  3. #include "qmlapplicationviewer.h"
  4. #include "internet_police.h"
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication app(argc, argv);
  8. QmlApplicationViewer viewer;
  9. Internet_Police police;
  10. viewer.rootContext()->setContextProperty("checkPolice", &police);
  11. viewer.setMainQmlFile(QLatin1String("qml/TheftAuto/main.qml"));
  12. viewer.showExpanded();
  13. return app.exec();
  14. }