But you have defined a prefix for the images, which means you have to use it (prefix) when accessing the resources.
But you have defined a prefix for the images, which means you have to use it (prefix) when accessing the resources.
Removed.Still same effect
Qt Code:
<RCC> <qresource> <file>1.jpg</file> <file>ex.png</file> <file>o.png</file> <file>icon.png</file> </qresource> </RCC>To copy to clipboard, switch view to plain text mode
How do you access the images ? If you write QImage("1.jpg") you are not referencing the image from resource system, you have to use the colon - QImage(":/1.jpg"). It's written in the resource system documentation.
Bookmarks