Qt-interest Archive, February 2008
Re: mimetype from extension ?
Message 1 in thread
Bill KING wrote:
> Stephen Collyer wrote:
>> Id there any functionality in Qt to generate a QString
>> containing probable mimetype from a file extension/suffix ?
>>
>> e.g. "pdf" -> "application/pdf", "png" -> "image/png"
>> and so on.
>>
>> I can find nothing suitable in the Assistant index.
>>
>>
> We created such a beast for Qtopia. Check the 4.1 sources, maybe 4.2.
I've hacked something up that's good enough for my own needs,
but could you give me a clue as to what I'd be looking for ?
> 4.3 went to sqlite database storage and heavier interrelation to the
> document management system, so I don't recommend that.
I'm not sure what you're saying here - that there's some DB based
lookup table in QTopia 4.3 ?
Or is it, as I suspect, a coded message that all Trolls have
been laid off, the Qt sources destroyed, and that bulldozers
driven by senior Nokia management are, even as I type, moving
towards Trolltech headquarters ?
--
[ signature omitted ]