Dialog QML Type
ネイティブダイアログの基本クラスです。詳細...
Import Statement: | import QtQuick.Dialogs |
Since: | Qt 6.2 |
Inherits: | |
Inherited By: | ColorDialog, FileDialog, FolderDialog, FontDialog, and MessageDialog |
プロパティ
- data : list<QtObject>
- flags : Qt::WindowFlags
- modality : Qt::WindowModality
- parentWindow : Window
- result : int
- title : string
- visible : bool
信号
方法
詳細な説明
Dialog型はネイティブプラットフォームダイアログに共通のQML APIを提供します。非ネイティブダイアログについてはDialog を参照してください。
ネイティブダイアログを表示するには、具体的なDialog実装のインスタンスを作成し、必要なプロパティを設定し、open ()を呼び出します。ユーザーがダイアログを終了すると、Dialogはaccepted() またはrejected() を発行します。
プロパティ Documentation
flags : Qt::WindowFlags |
このプロパティはダイアログのウィンドウフラグを保持する。デフォルト値はQt.Dialog
である。
modality : Qt::WindowModality |
このプロパティはダイアログのモダリティを保持します。デフォルト値はQt.WindowModal
です。
利用可能な値
定数 | 説明 |
---|---|
Qt.NonModal | ダイアログはモーダルではなく、他のウィンドウへの入力をブロックしない。 |
Qt.WindowModal | ダイアログは単一のウィンドウ階層に対してモーダルで、その親ウィンドウ、すべての祖父母ウィンドウ、およびその親と祖父母ウィンドウのすべての兄弟ウィンドウへの入力をブロックします。 |
Qt.ApplicationModal | ダイアログはアプリケーションに対してモーダルであり、すべてのウィンドウへの入力をブロックする。 |
parentWindow : Window |
result : int |
このプロパティは結果コードを保持する。
標準的な結果コードです:
定数 | 値 |
---|---|
Dialog.Accepted | |
Dialog.Rejected |
注: MessageDialog は、標準結果コードを使用する代わりに、クリックされた標準ボタンの値を結果に設定します。
title : string |
このプロパティは、ダイアログのタイトルを保持します。
シグナル ドキュメント
void accepted() |
void rejected() |
メソッドの説明
© 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.