Shows the hierarchy of MIME types and can be used to determine the MIME type of a file.
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.
要运行范例从 Qt Creator ,打开 欢迎 模式,然后选择范例从 范例 。更多信息,拜访 构建和运行范例 .
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.
更多信息,见 QMimeType and QMimeDatabase .
文件: