Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
4.7.0
-
None
-
Window7 worked
Linux openSuse doesn't work
Description
Hello,
I just found out that qml tends to refer any kind of files via the resource system
as soon as I'm loading my qml sources via .qrc.
Here a short example:
I load a qml file via resource system into a QDeclarativeView:
this->my_qml_view->setSource(QUrl("qrc:///qml_source/main.qml"));
in main.qml I just load an Image
Image {
id: example
source: "/home/me/My Data/picture.jpg"
}
When I try to run this example I get the message:
QML Image: Cannot open: qrc:/home/me/My Data/picture.jpg
I develop on a Windows7 system and it worked fine.
Now I wanna test my application on my openSuse system and
got this kind of message.
I ask about this on the Qt developer platform and it seems
that this could be a bug.