Pages
API Documentation
On this page

SimpleKCM QML Type

This component is intended to be used as root item for KCMs with arbitrary content. More...

Detailed Description

Often a Kirigami.FormLayout is used as main element.

It is possible to specify a header and footer component.

import org.kde.kcmutils as KCMUtils
import org.kde.kirigami as Kirigami

KCMUtils.SimpleKCM {
    Kirigami.FormLayout {
       TextField {
          Kirigami.FormData.label: "Label:"
       }
       TextField {
          Kirigami.FormData.label: "Label:"
       }
    }
    footer: Item {...}
}

Property Documentation

[default: false] headerPaddingEnabled : bool

Whether the contents of the header will have automatic padding around it.

Should be disabled when using an InlineMessage or custom content item in the header that's intended to touch the window edges.

[read-only] margins : int

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