[Interest] Linux: can't get small icon from QIcon
Alexander Dyagilev
alervdvcw at gmail.com
Mon Feb 24 14:32:06 CET 2020
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:
>>
>> QIcon icon(":/icon.ico");
>> auto pm = icon.pixmap(QSize(32,32));
>> app.setWindowIcon(icon);
>>
>>
More information about the Interest
mailing list