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

QIcon/QPixmap doesn't load from QRC if scheme is defined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.7.2
    • GUI: Other
    • None
    • Windows

    Description

      QIcon/QPixmap doesn't load image from QRC resource if scheme is defined.

       

      QPixmap( QStringLiteral( "qrc:/fill-color.png" ) ) 

      won't work, whereas

       

      QPixmap( QStringLiteral( ":/fill-color.png" ) ) 

      will work.

      Attachments

        1. fill-color.png
          1 kB
          Igor Mironchik
        2. main.cpp
          0.3 kB
          Igor Mironchik
        3. resources.qrc
          0.1 kB
          Igor Mironchik
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            igor.mironchik Igor Mironchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes