Class: QgsAttributeEditorSpacerElement

class qgis.core.QgsAttributeEditorSpacerElement

Bases: QgsAttributeEditorElement

An attribute editor widget that will represent a spacer.

New in version 3.30.

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

Parameters:
  • name – The name of the widget

  • parent – The parent (used as container)

QgsAttributeEditorSpacerElement(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) QgsAttributeEditorElement
Parameters:

parent (QgsAttributeEditorElement) –

Return type:

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