DialogHeaderTopContent
DialogHeaderTopContent Class Reference
Properties | |
TDialog | dialog |
Detailed Description
Standard top content for a Dialog, including header text and an optional close button.
Provides appropriate padding and a bottom separator when the dialog's content is scrollable.
Chiefly useful as the first item in a ColumnLayout
inside a custom header, for when you want a custom header that only consists of extra content, and does not need to override the standard content. Example usage for a this:
import QtQuick
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
import org.kde.kirigami.dialogs as KDialogs
Kirigami.Dialog {
id: myDialog
title: i18n("My Dialog")
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
header: KDialogs.DialogHeader {
dialog: myDialog
contentItem: ColumnLayout {
Spacing: Kirigami.Units.smallSpacing
KDialogs.DialogHeaderTopContent {
dialog: myDialog
}
[...]
}
}
[...]
}
Standard top content for a Dialog, including header text and an optional close button.
Definition DialogHeaderTopContent.qml:55
TDialog dialog
This property points to the parent dialog, some of whose properties need to be available here.
Definition DialogHeaderTopContent.qml:62
Base for a header, to be used as the header: item of a Dialog.
Definition DialogHeader.qml:41
Definition at line 55 of file DialogHeaderTopContent.qml.
Property Documentation
◆ dialog
|
read |
This property points to the parent dialog, some of whose properties need to be available here.
Definition at line 62 of file DialogHeaderTopContent.qml.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:50:27 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:50:27 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.