Class: QgsLegendPatchShapeDialog

A dialog for configuring a custom legend patch shape.

Added in version 3.14.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsLegendPatchShapeDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Methods

buttonBox

Returns a reference to the dialog's button box.

shape

Returns the legend patch shape defined by the dialog.

class qgis.gui.QgsLegendPatchShapeDialog[source]

Bases: QDialog

__init__(shape: QgsLegendPatchShape, parent: QWidget | None = None)

Constructor for QgsLegendPatchShapeDialog, initially showing the specified shape.

Parameters:
buttonBox(self) QDialogButtonBox | None[source]

Returns a reference to the dialog’s button box.

Return type:

Optional[QDialogButtonBox]

shape(self) QgsLegendPatchShape[source]

Returns the legend patch shape defined by the dialog.

Return type:

QgsLegendPatchShape