Qt Reference Documentation

QML Basic Type: action

The action type has all the properties of QAction. The properties are:

  • slot action.trigger - invoke the action
  • bool action.enabled - true if the action is enabled
  • string action.text - the text associated with the action

Actions are used like this:

 MouseArea { onClicked: myaction.trigger() }
 State { name: "enabled"; when: myaction.enabled == true }
 Text { text: someaction.text }

See also QML Basic Types.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.