How to set the the path of images in qml file if the qml file is in resource ?
-
You always can pass absolute path of your app folder (which you can retrieve in run-time) as context property to qml and concat it with your image path
-
Volker, OP asks about using non-resourced images in resourced qml. I'm not sure it is possible with relative paths.
-
Also you can build this and use imagePath hack in Qt Creator and QmlViewer - https://github.com/misterion/QmlViewerDevHelper
-
Please read the following "thread":http://developer.qt.nokia.com/forums/viewthread/5617 because I believe it discuss the same issue.
@leon.anavi the link is no longer valid!