tags:

views:

25

answers:

1

Is there a way to get the MIME type of a file in Qt?

I am writing an application that needs to find the MIME type of a given file.

+2  A: 

You need to use 3rd party libraries for this purpose, there is no mime-type guessing support in Qt itself. On Linux/Unix you could use libmagic.

lunaryorn
Okay. I'll look into that.
George Edison
Perfect - that did exactly what I was hoping for.
George Edison