From a45754bd1c7cb9d47aa378c793104c1abe570c09 Mon Sep 17 00:00:00 2001 From: Ben Lau Date: Tue, 6 Sep 2016 14:14:25 +0800 Subject: [PATCH] demo: Include material.pri to fix the problem of "Material" is not installed --- demo/demo.pro | 3 +++ demo/main.cpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/demo/demo.pro b/demo/demo.pro index dae52407..e59c6980 100644 --- a/demo/demo.pro +++ b/demo/demo.pro @@ -4,3 +4,6 @@ QT += qml quick SOURCES += main.cpp RESOURCES += demo.qrc icons/icons.qrc + +DEFINES += QPM_INIT\\(E\\)=\"E.addImportPath(QStringLiteral(\\\"qrc:/\\\"));\" +include(../material.pri) diff --git a/demo/main.cpp b/demo/main.cpp index d1e6dc06..da1443e8 100644 --- a/demo/main.cpp +++ b/demo/main.cpp @@ -5,7 +5,9 @@ int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); - QQmlApplicationEngine engine(QUrl(QStringLiteral("qrc:/main.qml"))); + QQmlApplicationEngine engine; + QPM_INIT(engine); + engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); return app.exec(); }