Class: QgsLayerTreeViewMenuProvider

class qgis.gui.QgsLayerTreeViewMenuProvider

Bases: sip.wrapper

Implementation of this interface can be implemented to allow QgsLayerTreeView instance to provide custom context menus (opened upon right-click).

See also

QgsLayerTreeView

New in version 2.4: Enums

Methods

createContextMenu

Returns a newly created menu instance (or None on error)

Signals

Attributes

createContextMenu(self) → QMenu

Returns a newly created menu instance (or None on error)