ConvergentContextMenu
Properties | |
listTAction | actions |
Item | headerContentItem |
Signals | |
void | closed () |
Public Member Functions | |
void | popup (parent=null, position=null) |
Detailed Description
Menu popup that appears as a tradional menu on desktop and as a bottom drawer mobile.
ConvergentContextMenu uses abstract Controls.Action and Kirigami.Action to build the traditional menu on desktopn and the bottom drawer on mobile. Most properties of Kirigami.Action are supported including nested actions.
{qml}
When creating a menu for a ListView, avoid creating a ConvergentContextMenu for each delegate and instead create a global ConvergentContextMenu for the ListView or use a Component and dynamically instanciate the context menu on demand:
{qml}
- Since
- 1.7.0.
Definition at line 142 of file ConvergentContextMenu.qml.
Property Documentation
◆ actions
|
read |
This property holds the list of actions.
This can be either tradional action from QtQuick.Controls or a Kirigami.Action with sub actions.
- Remarks
- This is the default property
Definition at line 149 of file ConvergentContextMenu.qml.
◆ headerContentItem
|
read |
Optional item which will be displayed as header of the internal ButtonDrawer.
Note: This is only displayed on the first level of the ContextMenu mobile mode.
Definition at line 155 of file ConvergentContextMenu.qml.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:11 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.