What's New in Qt 5: QMimeDatabase and QMimeType
QMimeDatabase and QMimeType are new classes introduced in Qt 5. MIME, which stands for Multipurpose Internet Mail Extensions, is an Internet standard for identifying file formats. The MIME standard was originally created to support attachment of files in e-mail messages. A good reference for MIME can be found here.
The QMimeDatabase class returns information about the database of MIME types on a system. Instances of the QMimeType class describe the type of a file or data.