Search for usage in LXR

Menu Class Reference

#include <qmenu.h>

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: {
PlasmaExtras.Button {
id: btn
onClicked: {
menu.visualParent = btn

Definition at line 19 of file qmenu.h.

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Jun 7 2023 04:07:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.