Class: QgsAttributeEditorSpacerElement

class qgis.core.QgsAttributeEditorSpacerElement

Bases: QgsAttributeEditorElement

An attribute editor widget that will represent a spacer.

Added in version 3.30.

QgsAttributeEditorSpacerElement(name: Optional[str], parent: Optional[QgsAttributeEditorElement]) Creates a new element which represents a spacer

Parameters:
  • name – The name of the widget

  • parent – The parent (used as container)

QgsAttributeEditorSpacerElement(a0: QgsAttributeEditorSpacerElement)

Methods

clone

param parent:

drawLine

Returns True if the spacer element will contain an horizontal line.

setDrawLine

Sets a flag to define if the spacer element will contain an horizontal line.

clone(self, parent: QgsAttributeEditorElement | None) QgsAttributeEditorElement | None
Parameters:

parent (Optional[QgsAttributeEditorElement])

Return type:

Optional[QgsAttributeEditorElement]

drawLine(self) bool

Returns True if the spacer element will contain an horizontal line.

Return type:

bool

setDrawLine(self, drawLine: bool)

Sets a flag to define if the spacer element will contain an horizontal line.

Parameters:

drawLine (bool) – flag status