Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.1.1
-
None
-
linux 32bit
Description
when I assign a string to a url property like
//file: :/components/MyComponent.qml in resouce it is treated as if were a relative Url. import QtQuick 1.1 Image { source : ":/images/image.png" onSourceChanged { console.log(source) //writes file::/component/:/images/image.png } }
if used from a MyComponent.qml in "subfolder" in resource files "components" it would expand to : file::/component/:/images/image.png
Same is when calling Qt.resolvedUrl(":/images/image.png"). You'd expect that it would expand to e.g. qrc:///images/image.png or file::/images/image.png but it also resolved wrong.