ダイアログウィンドウ
ダイアログには、モーダルな ものと非モーダルなものがあります。モーダルなダイアログの場合、メインウィンドウでの操作を続行するには、ユーザーが必要な情報を入力する必要があります。一方、非モーダルなダイアログでは、ユーザーがアプリケーション内の他のウィンドウを操作することを妨げません。
Qt には、ファイル、フォント、色の選択などを行うための既製のダイアログ一式が用意されています。
色を指定するためのダイアログウィジェット | |
ユーザーがファイルやディレクトリを選択できるダイアログを提供します | |
フォントを選択するためのダイアログウィジェット | |
ユーザーから単一の値を取得するためのシンプルなダイアログ | |
ユーザーに通知したり、質問をして回答を受け取ったりするためのモーダルダイアログ | |
処理に時間がかかる際の進行状況に関するフィードバック |
通常のウィジェットをQDialog に組み込むことで、カスタムダイアログを簡単に作成できます。以下のクラスは、カスタムダイアログの構築のために特別に設計されています:
ダイアログウィンドウの基底クラス | |
現在のウィジェットスタイルに適したレイアウトでボタンを表示するウィジェット |
© 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.