Fluid
Loading...
Searching...
No Matches
Action Class Reference

Represents an action shown in an action bar, context menu, or list. More...

Inheritance diagram for Action:
Inheritance graph
[legend]
Collaboration diagram for Action:
Collaboration graph
[legend]

Detailed Description

Represents an action shown in an action bar, context menu, or list.

One of the most common uses of actions is displaying actions in the action bar of a page using the Page::actions property. See the example for Page for more details.

Actions may contain QtQuick::Controls::Action::text, an QtQuick::Controls::Action::icon, a toolTip and a QtQuick::Controls::Action::shortcut.

Fluid.Action {
id: copyAction
text: qsTr("&Copy")
icon.source: Fluid.Utils.iconUrl("content/content_copy")
shortcut: StandardKey.Copy
onTriggered: window.activeFocusItem.copy()
}
See also
QtQuick::Controls::Action QML Type
QtQuick::Controls::Action text documentation
QtQuick::Controls::Action::icon documentation
QtQuick::Controls::Action::shortcut documentation

The documentation for this class was generated from the following file: