MIME 類型瀏覽器範例

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.

運行範例

要運行範例從 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 .

文件: