AlertDialog QML Type | Fluid Reference Documentation

- Fluid Reference Documentation
- Fluid 1.2.0

# AlertDialog QML Type

Alert dialogs are urgent interruptions to inform the user about a situation. More...

Import Statement: | import Fluid.Controls 1.1

- List of all members, including inherited members

## Properties

- text : string

## Detailed Description

An alert dialog is used to interrupt the user's workflow to inform them about a situation that requires their acknowledgement.

Most alert don't need a title and they summarize a decision in a sentence or two by either asking a question or making a statement related to the action buttons.

     import QtQuick 2.10
     import QtQuick.Controls 2.3
     import Fluid.Controls 1.0 as FluidControls

     Item {
         FluidControls.AlertDialog {
             id: alertDialog
             title: qsTr("Use FooBar's localization service?")
             text: qsTr("Let FooBar help apps determine the location. " +
                        "This means sending anonymous location data to FooBar, " +
                        "even when no apps are running.")
         }

         Button {
             anchors.centerIn: parent
             text: qsTr("Click me")
             onClicked: alertDialog.open()
         }
     }

For more information you can read the Material Design guidelines.

## Property Documentation

text : string

Informative text to display.