Class: QgsLayoutViewMenuProvider

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

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: createContextMenu()

List of all members, including inherited members

Abstract Methods

createContextMenu

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

class qgis.gui.QgsLayoutViewMenuProvider[source]

Bases: object

abstract createContextMenu(self, parent: QWidget | None, layout: QgsLayout | None, layoutPoint: QPointF) QMenu | None[source]

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

Parameters:
Return type:

Optional[QMenu]