Qt Quick tutorial: How to add images to Qt Quick Designer?



  • Not sure if this is the right place to post but...

    I'm brand spanking new to Qt and my programming language is quite limited to C++. In going through one of the tutorials "Creating a Qt Quick Application", when I got to the step (near the beginning) that states:
    "To use the states.svg image in your application, you must copy it to the project directory (same subdirectory as the QML file) from the examples directory in the Qt installation directory. For example: C:\Qt\Examples\Qt-5.4\declarative\animation\states. The image appears in Resources
    although I right click add an existing file, the states.svg image never appears in the DESIGN -> RESOURCES area.


  • Moderators

    Hi @Ryan28, and welcome to the Qt Dev Net!

    To use the states.svg image in your application, you must copy it to the project directory (same subdirectory as the QML file)

    Have you done this?

    although I right click add an existing file, the states.svg image never appears in the DESIGN -> RESOURCES area.

    You don't need to right-click anything. Just copy the image into your project folder; it will automatically appear in Design -> Resources.

    P.S. I've split your post into a new thread. Please start a new thread for new questions, instead of adding on to an existing thread.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.