Form QML Type
The base class for Form conforming to the Kirigami Human Interface Guidelines. More...
| Since: | 6.24 |
| Inherits: |
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 and FormEntry.