Menu
Menu Class Reference
#include <qmenu.h>
Inheritance diagram for Menu:
Detailed Description
An Item provides a menu for use in context specific situations.
You can specify the position for the menu to open by setting its visualParent. MenuItems should be used to draw entries in the menu. The open() function opens up the menu at the given visualParent.
Example usage:
import org.kde.plasma.extras 2.0 as PlasmaExtras
[...]
PlasmaExtras.Menu {
id: menu
...
PlasmaExtras.MenuItem {
text: "Delete"
onClicked: {
myListItem.remove();
}
}
}
PlasmaExtras.Button {
id: btn
onClicked: {
menu.visualParent = btn
menu.open()
}
}
[...]
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 Sat Dec 21 2024 17:01:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.