Re: [Interest] Linux: can't get small icon from QIcon

2020-02-24 Thread Alexander Dyagilev
QIconicon(":/icon.ico"); #ifdefined(Q_OS_LINUX)&&!defined(Q_OS_ANDROID) icon=icon.pixmap(QSize(48,48)); #endif app.setWindowIcon(icon); On 2/24/2020 7:32 PM, Thiago Macieira wrote: On Monday, 24 February 2020 05:32:06 PST Alexander Dyagilev wrote: Ooops, it seems it really was typo in my co

Re: [Interest] Linux: can't get small icon from QIcon

2020-02-24 Thread Thiago Macieira
On Monday, 24 February 2020 05:32:06 PST Alexander Dyagilev wrote: > Ooops, it seems it really was typo in my code, that's why i was not > working. Can you share what the correct code is? -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software Products

Re: [Interest] Linux: can't get small icon from QIcon

2020-02-24 Thread Alexander Dyagilev
Ooops, it seems it really was typo in my code, that's why i was not working. Now it works. On 2/24/2020 4:22 PM, Alexander Dyagilev wrote: Sorry, there is a typo in the last line: app.setWindowIcon(pm) instead of app.setWindowIcon(icon). On 2/24/2020 4:20 PM, Alexander Dyagilev wrote: QIco

Re: [Interest] Linux: can't get small icon from QIcon

2020-02-24 Thread Alexander Dyagilev
Sorry, there is a typo in the last line: app.setWindowIcon(pm) instead of app.setWindowIcon(icon). On 2/24/2020 4:20 PM, Alexander Dyagilev wrote: QIcon icon(":/icon.ico"); auto pm = icon.pixmap(QSize(32,32)); app.setWindowIcon(icon); ___ Interest

[Interest] Linux: can't get small icon from QIcon

2020-02-24 Thread Alexander Dyagilev
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 ou