Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, December 2006
ressouces file : antialias images ?


Message 1 in thread

Hello,

I have an issue with the images in my ressource file (.qrc)

I use this from Designer, in order to assign pictures to items in a
QListWidget

The problem is :
whatever image format I use (png, jpeg, xpm), I get ugly aliased icons.
I have tried several flavors of 'png' (with or without transparency, ...)
Also, the pictures files are larger than the icon on the form one displayed.

Any idea as to how to come up with nice antialiased pictures ?

TIA

--
 [ signature omitted ] 

Message 2 in thread

On 23.12.06 22:02:28, eb wrote:
> whatever image format I use (png, jpeg, xpm), I get ugly aliased icons.
> I have tried several flavors of 'png' (with or without transparency, ...)
> Also, the pictures files are larger than the icon on the form one displayed.

Thats the problem.

> Any idea as to how to come up with nice antialiased pictures ?

Use icons that have the proper size and for resizing use whatever
algorithm works best for you.

Qt does scaling either fast or smooth and I have no idea which version
QListWidget uses, but my guess would be fast scaling.

Andreas

-- 
 [ signature omitted ] 

Message 3 in thread

Andreas Pakulat wrote:

> On 23.12.06 22:02:28, eb wrote:
>> whatever image format I use (png, jpeg, xpm), I get ugly aliased icons.
>> I have tried several flavors of 'png' (with or without transparency, ...)
>> Also, the pictures files are larger than the icon on the form one
>> displayed.
> 
> Thats the problem.
> 
>> Any idea as to how to come up with nice antialiased pictures ?
> 
> Use icons that have the proper size and for resizing use whatever
> algorithm works best for you.
> 
> Qt does scaling either fast or smooth and I have no idea which version
> QListWidget uses, but my guess would be fast scaling.
> 
> Andreas
> 

Ahh, yes indeed, it gives a smart result.
Thanks.

--
 [ signature omitted ]