MauiKit Controls
InfoDialog.qml
8 * @brief A Dialog with a built-in template container for displaying information, with a title, image and message body.
10 * <a href="https://doc.qt.io/qt-6/qml-qtquick-controls-dialog.html">This controls inherits from QQC2 Dialog, to checkout its inherited properties refer to the Qt Docs.</a>
15 * The dialog container is handled by a MauiKit ScrollColumn - which by default is flickable - so any contents added as children of this dialog will be put inside of it and become scrollable/flickable.
17 * @note For the scrollable behaviour to work correctly the child element needs to have an `implicitHeight` size set, and further positioning options should use the Layout attached properties: for filling the with use `Layout.fillWidth: true`.
19 * The InfoDialog uses the ListItemTemplate control to display the information labels and image/icon, this is exposed via the `template` property for further tweaking.
22 * To set the title use the `title` property. For the message body use the exposed alias property `message`, or the `template.text2` property, which are the same. To set an icon or image use the alias `template` property, for example `template.iconSource: "dialog-warning"`.
25 * @attention By default the only action button is set to `standardButtons: Dialog.Close`. To know more about other standard button types checkout the Dialog documentation on Qt page.
27 * And finally, the dialog can display an inline notification alert upon request via the `alert()` function.
29 * @remark This alert message is positioned at the bottom part and colored according to the emergency level set.
58 * <a href="https://invent.kde.org/maui/mauikit/-/blob/qt6-2/examples/InfoDialog.qml">You can find a more complete example at this link.</a>
65 * @brief The default content of the dialog. The children elements of this control will be positioned inside a Mauikit ScrollColumn.
79 * @brief The templated item used for the default dialog message, holding the icon emblem and the message body.
80 * This property gives access to the template for more detailed tweaking, by adding items or changing its properties.
93 Maui.ListItemTemplate
QString text() const
QStringView level(QStringView ifopt)
KGuiItem reset()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:48:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:48:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.