DialogHeaderTopContent

Search for usage in LXR

DialogHeaderTopContent Class Reference

Properties

TDialog dialog
 
alias showCloseButton
 

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
dialog: myDialog
}
[...]
}
}
[...]
}
Standard top content for a Dialog, including header text and an optional close button.
TDialog dialog
This property points to the parent dialog, some of whose properties need to be available here.
Base for a header, to be used as the header: item of a Dialog.

Definition at line 55 of file DialogHeaderTopContent.qml.

Property Documentation

◆ dialog

TDialog DialogHeaderTopContent::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.

◆ showCloseButton

alias DialogHeaderTopContent::showCloseButton
read

Whether the close button should be visible.

Defaults to true.

Definition at line 70 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 May 2 2025 12:02:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.