From kde-devel Wed Aug 11 21:47:27 1999 From: Simon Hausmann Date: Wed, 11 Aug 1999 21:47:27 +0000 To: kde-devel Subject: Re: Pixmap given a file name? X-MARC-Message: https://marc.info/?l=kde-devel&m=93440804705114 On Wed, 11 Aug 1999, Gary Meyer wrote: > > I need something like: > > const QPixmap* getIcon(const QString& pathName) const; > > To display a best icon given a file name. I haven't been able to find > anything. Any tips? You mean you want to get a "best" icon for a given URL? So that /home/joe/foo.html returns a nice icon for HTML documents for example? libkio's KMimeType/KPixmapCache is your friend then. Greetings, Simon