ConvergentContextMenu
ConvergentContextMenu Class Reference
Properties | |
listTAction | actions |
Item | headerContentItem |
Signals | |
void | closed () |
Public Member Functions | |
void | popup (position=null) |
Detailed Description
Menu popup that appears as a tradional menu on desktop and as a bottom drawer mobile.
import QtQuick
import QtQuick.Controls as Controls
import org.kde.kirigamiaddons.components as Addons
ListView {
model: 10
delegate: Controls.ItemDelegate {
text: index
onPressAndHold: contextMenu.popup();
}
Addons.ConvergentContextMenu {
id: menu
Controls.Action {
}
Kirigami.Action {
}
}
}
}
QString i18nc(const char *context, const char *text, const TYPE &arg...)
{qml}
- Since
- 1.7.0.
Definition at line 47 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 54 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 60 of file ConvergentContextMenu.qml.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:46:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:46:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.