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

QIcon doesn't support resource aliases

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.2.0
    • GUI: Painting
    • None

    Description

      QIcon doesn't correctly support icon loading from resources when icon plugin engines should be used (it works by accident with png's because they're used as a fallback). The problem is in QIcon::QIcon(const QString &) constructor.
      <!DOCTYPE RCC><RCC version="1.0">
      <qresource>
      <file alias="foo">tst.png</file>
      </qresource>
      </RCC>
      and:
      QIcon icon( ":foo" );
      QLabel widget;
      widget.setPixmap( icon.pixmap( QSize( 32, 32 ) ) );
      widget.show();
      show this.

      Attachments

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

        Activity

          People

            kjernase Trond Kjernåsen (Inactive)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes