이 페이지에서

MIME 유형 브라우저

MIME 유형의 계층 구조를 표시하며, 파일의 MIME 유형을 확인하는 데 사용할 수 있습니다.

MIME 유형 브라우저 예제의 스크린샷

MIME 유형 브라우저는 Qt의 MIME API의 일반적인 사용법을 보여주는 예제라기보다는 MIME 유형을 탐색하기 위한 도구로 고안되었습니다.

예제 실행

다음 경로에서 예제를 실행할 수 있습니다:

메인 창

메인 창은 왼쪽에 ` QStandardItemModel `을 상속하는 `MimetypeModel` 모델을 기반으로 한 MIME 유형의 계층 구조를 표시하는 트리 뷰와, 오른쪽에 선택한 MIME 유형에 대한 상세 정보를 표시하는 ` QTextBrowser `으로 구성됩니다.

이 창에는 ‘ File/Detect File Type ’ 옵션이 있는 메인 메뉴가 있으며, 이 옵션을 통해 파일을 선택하면 해당 파일의 MIME 유형이 표시됩니다.

자세한 내용은 QMimeType 및 QMimeDatabase 을 참조하십시오.

예제 프로젝트 @ code.qt.io

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