FormAction QML Type
A specialized FormEntry for a big clickable action. More...
| Since: | 6.24 |
| Inherits: |
Properties
- action : T.Action
- triggerIcon : Primitives.IconPropertiesGroup
Detailed Description
This component is used when the Form needs entries that represent a big clickable action: they will act like a single big button and is controlled by its Action property. Never override the contentItem property for a FormAction.
Example usage:
import QtQuick.Controls as QQC
import org.kde.kirigami as Kirigami
Kirigami.Form {
Kirigami.FormGroup {
title: "When Offline:"
Kirigami.FormAction {
action: Kirigami.Action {
icon.name: "offline-settings"
text: "Offline Settings"
onTriggered: { Code to open that settings page here }
}
}
...
}
}
See also FormEntry.
Property Documentation
action : T.Action [required]
The main action for this Entry
FormAction acts like a big button that represents and triggers it. The action icon and text properties will be displayed to the user in this control, and clicking anywhere on it will trigger the action.
triggerIcon : Primitives.IconPropertiesGroup [read-only]
An icon to be displayed on the rightof this FormEntry which represents what kind of action this is. By default is "go-next-symbolic", which suggests this action is opening something else or that is going to replace the PAge it's in.