You are not logged in.

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