12345678910111213141516171819 |
- #include <QtGui/QApplication>
- #include <QDeclarativeContext>
- #include "qmlapplicationviewer.h"
- #include "internet_police.h"
- int main(int argc, char *argv[])
- {
- QApplication app(argc, argv);
- QmlApplicationViewer viewer;
- Internet_Police police;
- viewer.rootContext()->setContextProperty("checkPolice", &police);
- viewer.setMainQmlFile(QLatin1String("qml/TheftAuto/main.qml"));
- viewer.showExpanded();
- return app.exec();
- }
|