#include #include #include #include #include #include int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); #if QT_VERSION >= 0x050300 app.setWindowIcon(QIcon(":icon.png")); #endif qmlRegisterType("QQuickMapboxGL", 1, 0, "MapboxMap"); qmlRegisterType("QQuickMapboxGL", 1, 0, "MapboxLayoutStyleProperty"); qmlRegisterType("QQuickMapboxGL", 1, 0, "MapboxPaintStyleProperty"); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); return app.exec(); }