[Qt-interest] How to get an icon associated with a certain filetype using Qt?
Robert Hairgrove
evorgriahr at hispeed.ch
Tue Mar 23 16:25:50 CET 2010
Scott Aron Bloom wrote:
> QFileIconProvider works very well
> Scott
Thanks ... I looked at this class, too. But it looks like there is a
very limited selection of icon types available. Maybe I'll just roll my
own icon database for the most common types.
The problem is that I need to get an icon based on an attachment's MIME
type, or perhaps from any file name extension, and not from the file
itself. At the point in time when I need the icon, the attachment is
still wrapped up in the email file, usually as a long sequence of
base64-encoded text data.
Maybe there is still another way?
More information about the Qt-interest-old
mailing list