MIME 类型浏览器
显示 MIME 类型的层次结构,可用于确定文件的 MIME 类型。
MIME 类型浏览器旨在成为探索 MIME 类型的工具,而不是展示 Qt MIME API 典型用法的示例。
运行示例
要运行来自 Qt Creator,打开Welcome 模式,并从Examples 中选择示例。更多信息,请参阅Qt Creator: 教程:构建并运行。
主窗口
主窗口包括一个树形视图,左边显示基于继承QStandardItemModel 的 MimetypeModel 模型的 MIME 类型层次结构,右边显示所选 MIME 类型详细信息的QTextBrowser 。
它有一个主菜单,其中有一个选项File/Detect File Type ,可让您选择一个文件,然后显示其 MIME 类型。
更多信息,请参阅QMimeType 和QMimeDatabase 。
© 2025 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.