Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Add an image to a QML project built by CMake



  • Hi all,

    I've got an image called "flower.png" in a folder called "images" put in the directory of the following very simple project.
    Capture.PNG

    What I need is to be able to add that image to the project and show it in the middle of the window. I've searched much to find a clear set of instructions how to do this step-by-step for the first time but unfortunately I haven't found a good one.
    Will you guide me of the process, please.
    My machine is Windows 10 x64 and I use Qt 6.2.2.


Log in to reply