ダイアログウィンドウ

ダイアログにはモーダルダイアログと モードレスダイアログがあります。モードレスダイアログは、ユーザがアプリケーションの他のウィンドウと対話することを妨げません。

Qtは、ファイル、フォント、色選択などのための既製のダイアログを提供しています。

QColorDialog

色を指定するダイアログウィジェット

QFileDialog

ファイルやディレクトリを選択するダイアログ

QFontDialog

フォントを選択するためのダイアログウィジェット

QInputDialog

ユーザから単一の値を取得するシンプルな便宜ダイアログ

QMessageBox

ユーザへの通知、またはユーザへの質問と回答のためのモーダルダイアログ

QProgressDialog

遅い操作の進行状況のフィードバック

カスタムダイアログは、通常のウィジェットをQDialog にまとめることで簡単に作成できます。 これらのクラスは、カスタムダイアログを作成するために特別に設計されています:

QDialog

ダイアログウィンドウの基本クラス

QDialogButtonBox

現在のウィジェットスタイルに適したレイアウトでボタンを表示するウィジェット

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