Why do i need to give the path as ":/images/track-marker.png" in the style sheet file. I am able to see the icon in a different machine where there is no "images" folder. If i change the path in style sheet to "track-marker.png" or something else instead of ":/images/track-marker.png", the image is not displayed.
because in .qrc file you have to put path to a file to let RCC know what file you want to put into exec. So the path you use in code is the path to file (so the path which you would use normally) but with a ":/" prefix (as it's qrc prefix). But you can do something like this:
<file alias="track-marker" >images/track-marker.png</file>
<file alias="track-marker" >images/track-marker.png</file>
To copy to clipboard, switch view to plain text mode
and now you can use path ":/track-marker"
But the common way (in my opinion) is to do it (in my app it looks something like this):
<qresource prefix="/images" >
<file alias="tb_pressed" >Resources/toolbutton_pressed.png</file>
<file alias="next-page" >Resources/16-em-down.png</file>
<file alias="prev-page" >Resources/16-em-open.png</file>
</qresource>
<qresource prefix="/images" >
<file alias="tb_pressed" >Resources/toolbutton_pressed.png</file>
<file alias="next-page" >Resources/16-em-down.png</file>
<file alias="prev-page" >Resources/16-em-open.png</file>
</qresource>
To copy to clipboard, switch view to plain text mode
so I have aliases to replace complicated paths, but I add prefix to group resources. Paths look like ":/images/next-page" as it is prefix + alias.
Bookmarks