[Qt-interest] How to get an icon associated with a certain file type using Qt?
Nikos Chantziaras
realnc at arcor.de
Mon Mar 22 22:09:06 CET 2010
On 03/22/2010 11:01 PM, Robert Hairgrove wrote:
> Is there a platform-independent way of doing this? For example, I am
> displaying the file name of an email in PDF format in a list view and
> would like to display the Acrobat icon next to the file name if it is
> available in the user's system and registered for the application/pdf
> content-type.
>
> Thanks...
Didn't try it, but it sounds like QFileSystemModel and QFileIconProvider
might be of help.
More information about the Qt-interest-old
mailing list