[PyKDE] menu icons

Jim Bublitz jbublitz at nwinternet.com
Thu Dec 5 00:29:01 GMT 2002


On 04-Dec-02 Richard Jones wrote:
> On Thu, 5 Dec 2002 9:28 am, Jim Bublitz wrote:
>> On 04-Dec-02 Eli Carter wrote:
>> > Ok, this is probably a dumb question, but...

>> > In kde3, I've noticed that there are some 'standard' icons
>> > used in the menus for things like '&Quit'.
>> > Is there a pre-made QIconSet or QPixmap to grab, or do I need
>> > to find the file and load from it?
>>
>> On a SuSE system, they're most likely under
>> /opt/kde3/share/icons/.
>> I'd expect a fairly similar location (except rooted somewhere
>> other than /opt perhaps) for other distributions.
 
> Don't the icons change according to the user's selected icon set?
> How do we hook into that?

I'm not really sure - KIconLoader or KIconTheme (or both)?
Also, I believe for the toolbar, KStdAction finds the icons
automatically if you use that to set up icons and menus. Obviously,
custom actions will require custom icons - I think the app's
directory under kde3/share is searched for those unless you specify
a different path.

I haven't looked at this stuff in a while and couldn't find
anything poking around quickly. I guess I'd start with the
KStdAction and KAction docs and whatever UI design docs are on the
KDE web site.

I wasn't sure if the original post was in regard to using KDE icons
with PyQt or PyKDE.


Jim




More information about the PyQt mailing list