diff options
Diffstat (limited to 'examples/quick/window')
-rw-r--r-- | examples/quick/window/window/window.cpp | 2 | ||||
-rw-r--r-- | examples/quick/window/window/window.pro | 6 | ||||
-rw-r--r-- | examples/quick/window/window/window.qrc | 5 |
3 files changed, 8 insertions, 5 deletions
diff --git a/examples/quick/window/window/window.cpp b/examples/quick/window/window/window.cpp index c9e6e90997..619e275f75 100644 --- a/examples/quick/window/window/window.cpp +++ b/examples/quick/window/window/window.cpp @@ -49,7 +49,7 @@ int main(int argc, char* argv[]) QGuiApplication app(argc, argv); QQmlEngine engine; QQmlComponent component(&engine); - component.loadUrl(QUrl::fromLocalFile("Window.qml")); + component.loadUrl(QUrl("qrc:///window/window/Window.qml")); if ( component.isReady() ) component.create(); else diff --git a/examples/quick/window/window/window.pro b/examples/quick/window/window/window.pro index e8a022361f..6df7ce8849 100644 --- a/examples/quick/window/window/window.pro +++ b/examples/quick/window/window/window.pro @@ -3,9 +3,7 @@ CONFIG += qt QT += qml SOURCES += window.cpp +RESOURCES += window.qrc target.path = $$[QT_INSTALL_EXAMPLES]/quick/window/window -qml.files = Window.qml nogui.qml standalone.qml twowindows.qml -qml.path = $$[QT_INSTALL_EXAMPLES]/quick/window/window - -INSTALLS = target qml +INSTALLS = target diff --git a/examples/quick/window/window/window.qrc b/examples/quick/window/window/window.qrc new file mode 100644 index 0000000000..c203c140fc --- /dev/null +++ b/examples/quick/window/window/window.qrc @@ -0,0 +1,5 @@ +<RCC> + <qresource prefix="/window/window"> + <file>Window.qml</file> + </qresource> +</RCC> |