[Qt-interest] Default (themed) icons?

Jens Bache-Wiig jbache at trolltech.com
Wed May 20 17:52:12 CEST 2009


Actually I blogged about this not too long ago. You might want to have a 
look at this:
http://labs.trolltech.com/blogs/2009/02/13/freedesktop-icons-in-qt/

We are considering adding something similar to Qt 4.6 but the link above
should work for all older versions too.

Jens

"R. Reucher" <rene.reucher at batcom-it.net> wrote in message 
news:200905201255.07771.rene.reucher at batcom-it.net...
> On Wed May 20 2009 12:28:00 Ole Streicher wrote:
>> Hi,
>>
>> For toolbars etc. I want to use existing default icons as far as
>> possible (f.e. for zoom actions). Under Linux, they are under
>>
>> /usr/share/icons/default.kde4/22x22/actions/
>>
>> but it is not portable to write this path to my application. How can I
>> solve this in a portable way?
> The only "portable" way I see is to use "style provided standard pixmaps":
> http://doc.qtsoftware.com/4.5/qstyle.html#StandardPixmap-enum
>
> If you want to use different images, you have to either make sure they are 
> in
> a place you define/know (and thus most probably need to redistribute them
> with your app), and/or embed them with your application.
>
> HTH, René
> -- 
> René Reucher
> rene.reucher at batcom-it.net
> http://www.batcom-it.net/
>
> One way to make your old car run better is to look up the price of a
> new model.


-- 
Jens Bache-Wiig - jbache at trolltech.com
Nokia - Qt Software 




More information about the Qt-interest-old mailing list