Hi lipos123
in addition to information about how to deploy images on device posted by jetrix74, here is a bit about how to find the resources in your application:
here notready.png is stored in gfx_resources project directory and deployed on device into application private directory under qml/gfx subdirectory. The application private directory can be obtained by QApplication::applicationDirPath() call
Code:
the project structure :
/
gfx_resources/
notready.png
project.pro:
gfxres.source = gfx_resources # by this rule, everything stored in gfx_resources project catalog will be deployed to target
gfxres.target = qml/gfx
DEPLOYMENTFOLDERS += gfxres
module.cpp:
#define QMLICONRESOURCE_NOTREADY "/qml/gfx/notready.png"
QImage icon = new QImage(QApplication::applicationDirPath() + QMLICONRESOURCE_NOTREADY);
you can check your deployment rules are correct if you examine *.pkg files generated by qmake command
application project example you can check here MotoTrialRacer