Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    QML and Qt Quick
    2
    2
    682
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Ryan28 last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        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.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply Reply Quote 0
        • First post
          Last post