MenuItemActionRow

Search for usage in LXR

MenuItemActionRow Class Reference
Inheritance diagram for MenuItemActionRow:

Properties

list< Actionactions
 

Additional Inherited Members

- Public Member Functions inherited from QtQuick.Controls.MenuItem
void triggered ()
 

Detailed Description

A menu item entry for placing a set of actions as the children.

The actions will be represented as row of QQC2 ToolButton.

This controls inherits from QQC2 MenuItem, to checkout its inherited properties refer to the Qt Docs.

This is mean tot be used inside a Menu, where a group of similar actions can be placed together to save vertical sspace and make the UI a bit less cluttered.

Maui.ContextualMenu
{
id: _contextualMenu
title: "Menu Title"
titleIconSource: "folder"
Maui.MenuItemActionRow
{
{
text: "Action1"
icon.name: "love"
}
{
text: "Action2"
icon.name: "folder"
}
{
text: "Action3"
icon.name: "anchor"
}
}
MenuSeparator {}
MenuItem
{
text: "Action3"
icon.name: "actor"
}
MenuItem
{
text: "Action4"
icon.name: "anchor"
}
}
Attention
When an action here defined has been triggered, then the triggered signal fo the actual container -aka MenuItem - will also be emitted. This is done to support the auto-closing of the menu after a menu entry has been triggered.

Definition at line 67 of file MenuItemActionRow.qml.

Property Documentation

◆ actions

list<Action> MenuItemActionRow::actions
read

The list of actions to be represented.

The children of this element should be a group of QQC2 Action.

Note
Checkout Qt documentation on the Action element.
Remarks
This is the default property

Definition at line 75 of file MenuItemActionRow.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.