Pages
API Documentation
On this page

FormAction QML Type

A specialized FormEntry for a big clickable action. This type was introduced in Qt 6.24. More...

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

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

[required] action : T.Action

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.

[read-only] triggerIcon : Primitives.IconPropertiesGroup

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.

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