[Qt-interest] How to apply app icon on Windows 7?
程梁
chengliang.soft at gmail.com
Tue Nov 30 12:02:45 CET 2010
Thanks! I realized where I am wrong. I thought the icon displayed on
the task bar is set in the rc file, then I know the wibdowIcon is what
I need. Thank you all! I have found the problem. That's very kind of
you!
发自我的 iPad
在 2010-11-30,18:12,"Oliver.Knoll at comit.ch" <Oliver.Knoll at comit.ch> 写到:
> On 2010-11-30 Alessandro alessandro.portale at nokia.com wrote:
>
>> ...
>> However, I really suggest to try what happens if you call setWindowIcon on your
>> main window:
>
> THAT is actually the solution ;) The *.ico file you specify in the RC file is ONLY used for the desktop icon (that is the one you see in file explorer, the one you double-click upon).
>
> The icon in the application switcher however is the one FROM THE APPLICATION WINDOW, and that one is set with above method setWindowIcon()!
>
> So provide a large enough *.png (is SVG supported here as well?) and your icon in the task switcher should be fine :)
>
> Cheers, Oliver
> --
> Oliver Knoll
> Dipl. Informatik-Ing. ETH
> COMIT AG - ++41 79 520 95 22
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list