Class: QgsStyleLegendPatchShapeEntity

A legend patch shape entity for QgsStyle databases.

Added in version 3.14.

Class Hierarchy

Inheritance diagram of qgis.core.QgsStyleLegendPatchShapeEntity

Base classes

QgsStyleEntityInterface

An interface for entities which can be placed in a QgsStyle database.

Methods

shape

Returns the entity's legend patch shape.

class qgis.core.QgsStyleLegendPatchShapeEntity[source]

Bases: QgsStyleEntityInterface

__init__(shape: QgsLegendPatchShape)

Constructor for QgsStyleLegendPatchShapeEntity, with the specified legend patch shape.

Parameters:

shape (QgsLegendPatchShape)

__init__(a0: QgsStyleLegendPatchShapeEntity)
Parameters:

a0 (QgsStyleLegendPatchShapeEntity)

shape(self) QgsLegendPatchShape

Returns the entity’s legend patch shape.

Return type:

QgsLegendPatchShape