Logo FluentUI

DialogButtonBox QML Type

A styled dialog button box for organizing dialog actions. More...

Import Statement: import FluentUI 1.0

Properties

Signals

Detailed Description

DialogButtonBox is a QML component that extends QtQuick.Controls.DialogButtonBox with Fluent Design theme support. It arranges standard dialog buttons such as OK, Cancel, Apply, and Close with correct Fluent Design positioning and spacing.

Usage Example

 import QtQuick
 import FluentUI

 DialogButtonBox {
     standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel
     onAccepted: console.log("Accepted")
     onRejected: console.log("Rejected")
 }

See also QtQuick.Controls.DialogButtonBox and Dialog.

Property Documentation

position : enumeration

The position of the button box relative to the dialog layout. This property is inherited from QtQuick.Controls.DialogButtonBox.

standardButtons : enumeration

The standard buttons shown in the button box, combined using bitwise OR. This property is inherited from QtQuick.Controls.DialogButtonBox.

Signal Documentation

void accepted()

Emitted when an OK or Yes button is clicked.

Note: The corresponding handler is onAccepted.

void applied()

Emitted when an Apply button is clicked.

Note: The corresponding handler is onApplied.

void discarded()

Emitted when a Discard or Don't Save button is clicked.

Note: The corresponding handler is onDiscarded.

void rejected()

Emitted when a Cancel or No button is clicked.

Note: The corresponding handler is onRejected.