aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/simplematerial
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/scenegraph/simplematerial')
-rw-r--r--examples/quick/scenegraph/simplematerial/simplematerial.cpp2
-rw-r--r--examples/quick/scenegraph/simplematerial/simplematerial.pro1
-rw-r--r--examples/quick/scenegraph/simplematerial/simplematerial.qrc5
3 files changed, 7 insertions, 1 deletions
diff --git a/examples/quick/scenegraph/simplematerial/simplematerial.cpp b/examples/quick/scenegraph/simplematerial/simplematerial.cpp
index de5ae9ebda..b7bea08260 100644
--- a/examples/quick/scenegraph/simplematerial/simplematerial.cpp
+++ b/examples/quick/scenegraph/simplematerial/simplematerial.cpp
@@ -185,7 +185,7 @@ int main(int argc, char **argv)
qmlRegisterType<Item>("SimpleMaterial", 1, 0, "SimpleMaterialItem");
QQuickView view;
- view.setSource(QUrl("main.qml"));
+ view.setSource(QUrl("qrc:///scenegraph/simplematerial/main.qml"));
view.show();
return app.exec();
diff --git a/examples/quick/scenegraph/simplematerial/simplematerial.pro b/examples/quick/scenegraph/simplematerial/simplematerial.pro
index ae4fb0fdd0..6ae935f357 100644
--- a/examples/quick/scenegraph/simplematerial/simplematerial.pro
+++ b/examples/quick/scenegraph/simplematerial/simplematerial.pro
@@ -3,6 +3,7 @@ QT += quick
SOURCES += \
simplematerial.cpp
+RESOURCES += simplematerial.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/scenegraph/simplematerial
qml.files = main.qml
diff --git a/examples/quick/scenegraph/simplematerial/simplematerial.qrc b/examples/quick/scenegraph/simplematerial/simplematerial.qrc
new file mode 100644
index 0000000000..4cc1eaafe4
--- /dev/null
+++ b/examples/quick/scenegraph/simplematerial/simplematerial.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/scenegraph/simplematerial">
+ <file>main.qml</file>
+ </qresource>
+</RCC>