diff options
Diffstat (limited to 'examples/quick/textureprovider/main.cpp')
-rw-r--r-- | examples/quick/textureprovider/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/quick/textureprovider/main.cpp b/examples/quick/textureprovider/main.cpp index d9d4fb0d38..6397de874b 100644 --- a/examples/quick/textureprovider/main.cpp +++ b/examples/quick/textureprovider/main.cpp @@ -48,7 +48,9 @@ int main(int argc, char* argv[]) QGuiApplication app(argc,argv); QQuickView view; - view.engine()->addImageProvider("etc", new EtcProvider()); + EtcProvider *provider = new EtcProvider(); + provider->setBaseUrl(QUrl("qrc:///textureprovider/")); + view.engine()->addImageProvider("etc", provider); view.setSource(QUrl("qrc:///textureprovider/textureprovider.qml")); view.show(); |