DialogHeader QML Type
Base for a header, to be used as the header: item of a Dialog. More...
| Import Statement: | import org.kde.kirigami.dialogs |
Properties
- dialog : Dialog
Detailed Description
Provides appropriate padding and a bottom separator when the dialog's content is scrollable.
Chiefly useful as the base element of a custom header. Example usage for this:
import QtQuick
import org.kde.kirigami as Kirigami
import org.kde.kirigami.dialogs as KD
Kirigami.Dialog {
id: myDialog
title: i18n("My Dialog")
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
header: KDialogs.DialogHeader {
dialog: myDialog
contentItem: [...]
}
[...]
}
Property Documentation
dialog : Dialog |
This property points to the parent dialog, some of whose properties need to be available here.