Qt-interest Archive, September 2007
Application icon in windows for many sizes
Message 1 in thread
Hi
I set an RC_FILE in my .pro file so that Windows can find an ico file for my
application.
Windows seems to use different size icons for different views in Explorer.
Other people's icons scale nicely - mine doesn't.
How can I set the icon to scale nicely ? The original is drawn in SVG
format.
Thanks in advance.
--
[ signature omitted ]
Message 2 in thread
hi, in Qt doc overviews chapters, there is a sub chapter titled
they say
First, create an ICO format bitmap
are you sure svg is possible?
koan a écrit :
>Hi
>
>I set an RC_FILE in my .pro file so that Windows can find an ico file for my
>application.
>
>Windows seems to use different size icons for different views in Explorer.
>Other people's icons scale nicely - mine doesn't.
>
>How can I set the icon to scale nicely ? The original is drawn in SVG
>format.
>
>Thanks in advance.
>
>--
>To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
>List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
>
--
[ signature omitted ]
Message 3 in thread
veronique.lefrere@xxxxxx wrote:
> hi, in Qt doc overviews chapters, there is a sub chapter titled
> they say
> First, create an ICO format bitmap
>
> are you sure svg is possible?
I read the documentation too; it only says about ICO format and says nothing
about multiple sizes.
My icon is in ICO format. This is what is set in the RC file. But ICO is not
a vector graphic format so it doesn't scale nicely.
I drew my icon in SVG, SVG is a scalable format. If there is a way to use a
scalable format I can convert my icon to it.
--
[ signature omitted ]
Message 4 in thread
koan wrote:
> I set an RC_FILE in my .pro file so that Windows can find an ico file for
> my application.
>
> Windows seems to use different size icons for different views in Explorer.
> Other people's icons scale nicely - mine doesn't.
>
> How can I set the icon to scale nicely ? The original is drawn in SVG
> format.
You are being tricked. The icons for other applications don't scale nicely.
Instead, their icon files contain the same icon in multiple sizes. An icon
file can contain multiple versions of the same (or another) image. For
Vista, it is recommended that you provide in your .ico:
256×256, 32-bit color, PNG compressed
256×256, 8-bit color, PNG compressed
256×256, 4-bit color, PNG compressed
48×48, 32-bit color, uncompressed
48×48, 8-bit color, uncompressed
48×48, 4-bit color, uncompressed
32×32, 32-bit color, uncompressed
32×32, 8-bit color, uncompressed
32×32, 4-bit color, uncompressed
16×16, 32-bit color, uncompressed
16×16, 8-bit color, uncompressed
16×16, 4-bit color, uncompressed
A good icon file editor should enable you to do this.
Regards,
André
--
[ signature omitted ]
Message 5 in thread
Just to reiterate what André Somers says below: in your .ico file, you need to create a different component for each icon size and colo(u)r depth.
For nice looking icons there's really no alternative to drawing them pixel by pixel, though you can start from a PNG, or whatever.
If you have Visual Studio, create a new Icon File. From the Image Menu, select New Image Type... for each size. (It's a bit obscure, but you can use transparency.)
Sam Dutton
SAM DUTTON
SENIOR SITE DEVELOPER
200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F
E SAM.DUTTON@xxxxxxxxx
WWW.ITN.CO.UK
P Please consider the environment. Do you really need to print this email?
-----Original Message-----
From: André Somers [mailto:andre@xxxxxxxxx]
Sent: Saturday 22 September 2007 07:59
To: qt-interest@xxxxxxxxxxxxx
Subject: Re: Application icon in windows for many sizes
koan wrote:
> I set an RC_FILE in my .pro file so that Windows can find an ico file
> for my application.
>
> Windows seems to use different size icons for different views in Explorer.
> Other people's icons scale nicely - mine doesn't.
>
> How can I set the icon to scale nicely ? The original is drawn in SVG
> format.
You are being tricked. The icons for other applications don't scale nicely.
Instead, their icon files contain the same icon in multiple sizes. An icon file can contain multiple versions of the same (or another) image. For Vista, it is recommended that you provide in your .ico:
256×256, 32-bit color, PNG compressed
256×256, 8-bit color, PNG compressed
256×256, 4-bit color, PNG compressed
48×48, 32-bit color, uncompressed
48×48, 8-bit color, uncompressed
48×48, 4-bit color, uncompressed
32×32, 32-bit color, uncompressed
32×32, 8-bit color, uncompressed
32×32, 4-bit color, uncompressed
16×16, 32-bit color, uncompressed
16×16, 8-bit color, uncompressed
16×16, 4-bit color, uncompressed
A good icon file editor should enable you to do this.
Regards,
André
--
[ signature omitted ]