Issue when loading an ico from a Qt resource file
I am using Qt Designer 4.8.4 and I include two files in the QMainWindow resource file: a .ico file and a .gif file. When loading from code using:
QPixmap p;
p.load(":/MyApp/media/logo.gif"); // does work
p.load(":/MyApp/media/logo.ico"); // does not work
The gif file works, but not the ico file. Is there any reason?
I am using the ico file as the window icon and it is not showing when running the application.
And, yes, I am successfully compiling the qrc file since the GIF file is working.