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
- createContextMenu(self) → QMenu¶
Returns a newly created menu instance (or
None
on error)- Return type
QMenu