Is the way below what recommended to add images (or .gif or sound files) to a QML project?
In CMakeLists.txt :
- add
set(CMAKE_AUTORCC ON)
- add
RESOURCES images/background.png line to qt_add_qml_module
In .qml file use it like:
source: "images/background.png"