MIMEタイプブラウザ

MIME タイプの階層を表示し、ファイルの MIME タイプを決定するために使用できます。

Screenshot of the MIME Type Browser Example

MIME Type Browserは、Qt の MIME API の典型的な使い方を示す例ではなく、MIME タイプを調べるためのツールであることを意図しています。

例の実行

からサンプルを実行するには Qt Creatorからサンプルを実行するには、Welcome モードを開き、Examples からサンプルを選択します。詳細については、Building and Running an Example を参照してください。

メインウィンドウ

メインウィンドウは、左側にモデル MimetypeModel inheritingQStandardItemModel に基づいた MIME タイプの階層を表示するツリービュー、右側に選択した MIME タイプの詳細情報を表示するQTextBrowser から構成されます。

メイン・メニューにはFile/Detect File Type というオプションがあり、ファイルを選ぶとその MIME タイプが表示されます。

詳しくはQMimeTypeQMimeDatabase を参照してください。

プロジェクト例 @ code.qt.io

© 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.