Pages
API Documentation
On this page

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
  • Inherits: Control

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

[required] dialog : Dialog

This property points to the parent dialog, some of whose properties need to be available here.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.