Subgroup: Layer

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: Methods

createContextMenu Returns a newly created menu instance (or null pointer on error)

Signals

Attributes

createContextMenu(self) → QMenu

Returns a newly created menu instance (or null pointer on error)