[Qt-interest] How to get an icon associated with a certain filetype using Qt?
Robert Hairgrove
evorgriahr at hispeed.ch
Tue Mar 23 20:37:58 CET 2010
André Somers wrote:
> Hi,
>
> How do you figure that? Based on the short list of enumerated in IconType?
> If you actually try it, you see that it uses the system icon for the icons
> you ask for using a QFileInfo. Wouldn't that be enough? Or don't you have an
> actual file of the type you are after?
Yes, this is what I was referring to ... the IconType enumeration.
As indicated in my previous messages, I have no file ... all I have at
the point where I need the icon is the MIME type as given in the email
"Content-Type" header. There is no way of knowing in advance whether or
not this file has an associated icon until I decode the base64 (usually
it is in this format) and save it as an actual file on the user's
machine. I'd rather not have to do that unless the user wanted to save it.
More information about the Qt-interest-old
mailing list