Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.2.0
-
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.