PDA

View Full Version : Rendering of Application icon / Antialiasing



RThaden
18th March 2010, 13:03
Hi all,

I have customized my application icon in Windows Vista using a .rc file as described here (http://qt.nokia.com/doc/4.6/appicon.html)
I noticed that the icon in the Qt app is rendered worse than in the explorer.
Please have a look at the attached small image. The left icon is rendered in my app, the right one in a filebrowser (TotalCommander in this case, but the windows explorer does the same).
The right one looks exactly the same as the .ico file viewed in IrfanView, e.g.
The left one is somehow modified.

Is there a way to control the rendering of the icon?

wysota
18th March 2010, 16:28
One thing is an application icon (the one you see in Explorer), the other thing is a window icon (the one you see in the upper left corner of the window). The first one is controlled by the RC file, the other by QWidget::setWindowIcon().

RThaden
23rd March 2010, 09:35
Thanks Wysota for your explanation.

The two icons stem from the same ".ico" file. So somehow the rendering seems to be different. Any idea where that happens and if there is a tweek to change it?

Best regerds,

Rainer