Pages
API Documentation
On this page

ActionMenu QML Type

A declarative menu containing named actions and separators. More...

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

Detailed Description

The compact actions property can be used for menus containing only actions. Use the ordered default property when separators or explicit ordering are needed.

Each entry in mergedItems contains type and name. Action entries also contain the resolved action object used by menu presenters.

KirigamiActions.ActionMenu {
    name: "file"
    text: i18nc("@title:menu", "File")

    ActionMenu.Action { name: "open_pdf" }
    ActionMenu.Separator {}
    ActionMenu.Action { name: "quit" }
}

// Set \c menuBarVisible to false for menus presented only by ActionMenuPopup.
We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.