[Qt-interest] How to apply app icon on Windows 7?

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Tue Nov 30 11:11:22 CET 2010


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






More information about the Qt-interest-old mailing list