Pages
API Documentation
On this page

Form QML Type

The base class for Form conforming to the Kirigami Human Interface Guidelines. This type was introduced in Qt 6.24. More...

  • Import Statement: import org.kde.kirigami.forms
  • Since: Qt 6.24
  • Inherits: Item

Detailed Description

This is the base element for forms, used for instance in settings pages. We usually have a Page that contains a single Form, which in turn contains one or more FormGroup, each formGroup containing one or more FormEntry.

Example usage:

import QtQuick.Controls as QQC
import org.kde.kirigami as Kirigami

Kirigami.Form {
  Kirigami.FormGroup {
      title: "Global Settings"
      Kirigami.FormEntry {
          contentItem: QQC.CheckBox {
              text: "Show Sidebar"
          }
      }
      Kirigami.FormEntry {
          contentItem: QQC.CheckBox {
              text: "Auto Save"
          }
      }
  }
  Kirigami.FormGroup {
      title: "Theme Options"
      Kirigami.FormEntry {
          title: "Colors"
          contentItem: QQC.CheckBox {
              text: "Dark Theme"
          }
      }
      Kirigami.FormSeparator {}
      Kirigami.FormEntry {
          contentItem: QQC.CheckBox {
              text: "High Contrast"
          }
      }
      ...
  }
}

See also FormGroup, FormEntry

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