You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Remenic

Beginner

  • "Remenic" started this thread

Posts: 1

Location: Netherlands

  • Send private message

1

Sunday, September 19th 2004, 10:32pm

Launcher Icon

I'm looking for a class that will take a .desktop file (application launcher) and display an icon that I can click. Does anyone know if it exists?

Basically I want something like the icons in the panel (Home, Konqueror, etc. those icons).

This post has been edited 1 times, last edit by "Remenic" (Sep 19th 2004, 10:34pm)


anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Monday, September 20th 2004, 12:01pm

Hmm, you could use KDesktopFile to read the file and then use the string from readIcon() to load the pixmap with KIconLoader.
You can then display the icon for example on a QPushButton.

Cheers,
_
Qt/KDE Developer
Debian User