Images not showing in preview mode
-
Hello!
I have a weird issue - when I open a QML file, which contains qrc: images, the images don't show up in the preview until I select the same source file again. For example.
- This is the first thing I see, when I open up the .qml file:
As you can see, the Source IS found (obviously, because it works, when I run it). So in order for the button to show up in the Preview, I have to select the exactly same Source via GUI (even though it's correctly selected by default)
-
I press the Source selection and select the exact same qrc: file:
-
Suddenly the preview shows up
So the thing that changes in QML, when I do that is:
Before:source: "qrc:/assets/buttons/btn-secondary-ok-0.png"
After:source: "../../assets/buttons/btn-secondary-ok-0.png"
Isn't the correct way to use QRC instead of relative pathing? Do I have to change my entire project to not use QRC just for previews to work?
P. S. The .qml file and the asset file are in separate QRC files.
Any help appreciated! :)
- This is the first thing I see, when I open up the .qml file:
-
Help, anyone?
-
Urls from qrc files are currently not supported. Please use relative URLs instead.