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 .
文件: