MIME Type Browser Example

Shows the hierarchy of MIME types and can be used to determine the MIME type of a file.

Screenshot of the MIME Type Browser Example

MIME Type Browser is intended to be a tool for exploring MIME types rather than an example showing the typical usage of Qt's MIME API.

Running the Example

To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

Main Window

The main window consists of a tree view displaying the hierarchy of MIME types based on the model MimetypeModel inheriting QStandardItemModel on the left and a QTextBrowser for showing detailed information about the selected MIME type on the right.

It has a main menu with an option File/Detect File Type, which lets you pick a file and then displays its MIME type.

For more information, see QMimeType and QMimeDatabase.

Files:

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.