Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.0.2
-
None
-
Windows 7 x64, MSVC 2012
Linux, XCB
Mac
-
b24a115706d89351d4b0ebb075e869349490b301
Description
Given a qrc containing test.png (a 16x16 32-bit image), the following code fails to display the image as the window's icon:
main.cpp
#include <QGuiApplication> #include <QWindow> int main(int argc, char** argv) { QGuiApplication app(argc, argv); QWindow w; w.setIcon(QIcon(":/test.png")); w.show(); return app.exec(); }