QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsLayoutViewMenuProvider Class Referenceabstract

Interface for a QgsLayoutView context menu. More...

#include <qgslayoutview.h>

Public Member Functions

virtual ~QgsLayoutViewMenuProvider ()=default
 
virtual QMenu * createContextMenu (QWidget *parent, QgsLayout *layout, QPointF layoutPoint) const =0
 Returns a newly created menu instance (or nullptr on error)
 

Detailed Description

Interface for a QgsLayoutView context menu.

Implementations of this interface can be made to allow QgsLayoutView instances to provide custom context menus (opened upon right-click).

See also
QgsLayoutView

Definition at line 600 of file qgslayoutview.h.

Constructor & Destructor Documentation

◆ ~QgsLayoutViewMenuProvider()

virtual QgsLayoutViewMenuProvider::~QgsLayoutViewMenuProvider ( )
virtualdefault

Member Function Documentation

◆ createContextMenu()

virtual QMenu * QgsLayoutViewMenuProvider::createContextMenu ( QWidget *  parent,
QgsLayout layout,
QPointF  layoutPoint 
) const
pure virtual

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


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