Important: Please read the 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.

    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