Dialog QML Type
A styled dialog with Fluent Design theming and enter/exit animations. More...
| Import Statement: | import FluentUI 1.0 |
Properties
- closePolicy : enumeration
- contentItem : Item
- modal : bool
- standardButtons : enumeration
- title : string
Signals
Detailed Description
Dialog is a QML component that extends QtQuick.Controls.Dialog with Fluent Design theme support. It provides a modal or modeless popup dialog with themed title bar, background, and smooth enter/exit animations. It integrates with DialogButtonBox for standard dialog actions.
Usage Example
import QtQuick import FluentUI Dialog { title: "Confirmation" modal: true standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel Label { text: "Are you sure you want to proceed?" } }
See also QtQuick.Controls.Dialog and DialogButtonBox.
Property Documentation
closePolicy : enumeration
The policy controlling how the dialog can be closed. This property is inherited from QtQuick.Controls.Dialog.
contentItem : Item
The content item of the dialog. This property is inherited from QtQuick.Controls.Dialog.
modal : bool
Whether the dialog is modal, blocking input to other windows. This property is inherited from QtQuick.Controls.Dialog.
standardButtons : enumeration
Standard buttons to display in the dialog, combined using bitwise OR from the DialogButtonBox standard button enum. This property is inherited from QtQuick.Controls.Dialog.
title : string
The title text displayed in the dialog's title bar. This property is inherited from QtQuick.Controls.Dialog.
Signal Documentation
void accepted()
Emitted when the dialog is accepted, typically via an OK or Yes button.
Note: The corresponding handler is onAccepted.
void applied()
Emitted when the Apply button is clicked.
Note: The corresponding handler is onApplied.
void discarded()
Emitted when the dialog changes are discarded.
Note: The corresponding handler is onDiscarded.
void rejected()
Emitted when the dialog is rejected, typically via a Cancel or No button.
Note: The corresponding handler is onRejected.