Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95587

icon.source of Control is not resolved relative to user code

    XMLWordPrintable

Details

    • dfc16e40ab (qt/qtdeclarative/dev) dfc16e40ab (qt/tqtc-qtdeclarative/dev) 17c8cf1f1b (qt/qtdeclarative/6.2) 24341c93d9 (qt/qtdeclarative/6.3) 17c8cf1f1b (qt/qtdeclarative/6.2.4) 17c8cf1f1b (qt/tqtc-qtdeclarative/6.2)

    Description

      Since relative URL is no longer resolved statically, icon.source of controls won't be
      resolved relative to user code, but to internal IconLabel.
       

      Window {
          Image { source: "a.png" }  // loads ./a.png
          Button { icon.source: "a.png" }  // loads qrc:/qt-project.org/imports/QtQuick/Controls/Fusion/a.png
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              jirauser52013 user-c858f (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes