Search for usage in LXR

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

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:54:11 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.