Qt doesn't seem to offer this feature yet. However, you might want to look into the libmagic library, which does what file and other similar commands do. Assuming the library is properly maintained, it will include new types of MIME over time. From what I can tell, this is part of the toolkit for files. On a Debian system, do something like this:
sudo apt-get install libmagic-dev
to get the development library and use #include to use it.
source share