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

Absolute path shown for resources using "direct" syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 4.5.1, Qt Creator 4.6.0-rc1
    • 4d40254619bf06915eb26d3d24d158db0996fa4a, qtbase/d6d80ff2e925c5c52de498535cfdb808b3bd3670

    Description

      When I use the following syntax:

      qml.files = $$files(*.qml)
      qml.prefix = /qml
      RESOURCES += qml
      
      images.files = $$files(*.png)
      images.prefix = /images
      RESOURCES += images
      

      The end result is this:

      Which means that I need to resize the projects pane in order to see which file it's referring to. I think the absolute path of the generated qrc file is not important information for a user (it's available in the tooltip if needed), and it would be better to show just the file name, as occurs for regular .qrc files:

      For example, in the case of the snippet above, it would be qmake_qml.qrc and qmake_images.qrc.

      Attachments

        1. resources-elided-mismatch.png
          resources-elided-mismatch.png
          9 kB
        2. resources-elided.png
          resources-elided.png
          6 kB
        3. resources2.png
          resources2.png
          4 kB
        4. resources.png
          resources.png
          6 kB
        5. res.png
          res.png
          8 kB

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes