NativeMenuItem QML Type

An experimental Qt.labs.platform.MenuItem defined by a QAction. More...

Import Statement: import org.kde.kirigamiaddons.actions.labs

Properties

Detailed Description

This API is experimental and may change without notice.

 import Qt.labs.platform as Labs
 import org.kde.kirigamiaddons.actions as KirigamiActions
 import org.kde.kirigamiaddons.actions.labs as KirigamiActionsLabs

 KirigamiActions.StatefulWindow {
     application: MyKoolApp

     Labs.MenuBar {
         Labs.Menu {
             KirigamiActionsLabs.NativeMenuItem {
                 actionName: 'add_notebook'
                 application: MyKoolApp
             }
         }
     }
 }

Property Documentation

actionName : string

This property holds the action name defined in your AbstractKirigamiApplication implementation.

actionObject : QtObject

This property can be used by generated menus to provide the resolved action directly when actions with the same name exist in multiple collections.

alternateShortcut : Shortcut [read-only]

application : AbstractKirigamiApplication

This property holds the AbstractKirigamiApplication where the action is defined.