Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt Quick tutorial: How to add images to Qt Quick Designer?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 810 Views 1 Watching
  • 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 Offline
    R Offline
    Ryan28
    wrote on last edited by
    #1

    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
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved