Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12029

Image files can't be shown in Quick project, missing in qrc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 3.1.0
    • None
    • Windows 7 64 bit

    Description

      1. Create a new Qt Quick Application project.
      2. Open the project's qml file in Design mode.
      3. Drag an Image item into the GUI.
      4. Select an image file to show in the Image item.
      5. Run the project.
        The image file won't be shown because it was not added to the project's qrc file:
        qrc:///main.qml:21:5: QML Image: Cannot open: qrc:///Screenshots/5.png
        

      When selecting an image file, Creator should offer to add this file to the qrc file and, if needed, copy it.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thohartm Thomas Hartmann
              rlohning Robert Löhning
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes