QGIS API Documentation 3.39.0-Master (67e056379ed)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsLayerTreeViewMenuProvider Class Referenceabstract

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

#include <qgslayertreeview.h>

Public Member Functions

virtual ~QgsLayerTreeViewMenuProvider ()=default
 
virtual QMenu * createContextMenu ()=0
 Returns a newly created menu instance (or nullptr on error)
 

Detailed Description

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

See also
QgsLayerTreeView

Definition at line 497 of file qgslayertreeview.h.

Constructor & Destructor Documentation

◆ ~QgsLayerTreeViewMenuProvider()

virtual QgsLayerTreeViewMenuProvider::~QgsLayerTreeViewMenuProvider ( )
virtualdefault

Member Function Documentation

◆ createContextMenu()

virtual QMenu * QgsLayerTreeViewMenuProvider::createContextMenu ( )
pure virtual

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


The documentation for this class was generated from the following file: