Action QML Type

Provides an abstract user interface action that can be bound to items. More...

Import Statement: import quey.ui 0.1
Inherits:

Action

Properties

Detailed Description

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.

import QtQuick 2.4
import quey.ui 0.1

Page {
    actions: [
        Action {
            text: "MyAction"
            iconName: "paw"
            onTriggered: {
                console.log("Action triggered!")
            }
        }
    ]
}

Inherits QtQuick.Controls.Action. Please refer to the Qt documentation for more information.

Property Documentation

visible : bool

Set visible to false to hide the visual representation of this action.