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

Inconsistent UI paradigm, selecting Image.source from "filesystem" in fact sets it from QRC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • Qt Creator 13.0.0-beta1
    • Qt Creator 3.1.0, Qt Creator 3.4.0, Qt Creator 3.4.1
    • Quick Designer
    • None

    Description

      In the Designer:

      1. Insert a QML Image
      2. Set it's source from, say: "assets/photo.png"
      3. Run
      4. Fail (it wont load and say it's not found)
      ...
      Optional: user is perplexed because it works in the designer

      This happens because you selected a file, and it truly loaded it, but in fact, at runtime, the Image is expecting it to be *inside* the QRC.

      Possible Solutions:

      a) Pull the file into to the QRC automatically ( maybe not a good idea, see QTCREATORBUG-12226 )
      b) Eliminate loading from filesystem and force the user to fill the QRC library by hand (maybe not desirable).
      c) Make QRC-everything not default as this breaks the filesystem paradigm and is, in fact, a strong usability bug.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              desert Ariel Molina R.
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes