(resource) images not displaying
Solved
General and Desktop
-
Hi all -
I'm trying to use the resource system to include several small images. I've created and populated a .qrc file like so:
And in one of my .qml files, I have this:Image { source: ":/icons/Home.png" }
I don't get a runtime error, but my image doesn't display. I'm sure I'm leaving a step out of using the resource system. Can anyone tell me what I've missed?
Qt 6.4, cmake project.
Thanks...
EDIT: I also added icons.qrc to my CMakeLists.txt file:
qt_add_executable( appnga main.cpp icons.qrc resources.qrc clock.cpp clock.h )