Pages
API Documentation
On this page

NativeMenuItem QML Type

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

  • Import Statement: import org.kde.kirigamiaddons.actions.labs
  • Inherits: MenuItem

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.

[read-only] alternateShortcut : Shortcut

application : AbstractKirigamiApplication

This property holds the AbstractKirigamiApplication where the action is defined.

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