Hello,
In my app, I use this:
app.setWindowIcon(QIcon(":/icon.ico"));
This .ico file has 5 sizes: 16x16, 24x24, 32x32, 48x48 and 256x256. This
is how Visual Studio shows them (sorry for the rotation xD):
The problem is that under Linux, "App is ready" window is extremely and
ugly big for our app.
This is because it picks up the biggest icon (256x256).
I've tried to extract small icon from QIcon, but it did not help:
QIcon icon(":/icon.ico");
auto pm = icon.pixmap(QSize(32,32));
app.setWindowIcon(icon);
Then I just removed this 256x256 icon from my icon.ico file, built the
app, and now it works fine:
I would like to avoid having several .ico files inside of my project. Is
there away to remove this 256x256 in runtime using Qt? Or is there any
other solution for this problem?
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest