Class: QgsAttributeEditorSpacerElement

An attribute editor widget that will represent a spacer.

Added in version 3.30.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsAttributeEditorSpacerElement

Base classes

QgsAttributeEditorElement

An abstract base class for any elements of a drag and drop form.

Constructor

__init__

Abstract Methods

clone

Methods

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.

class qgis.core.QgsAttributeEditorSpacerElement[source]

Bases: QgsAttributeEditorElement

__init__(name: str | None, parent: QgsAttributeEditorElement | None)

Creates a new element which represents a spacer

Parameters:
__init__(a0: QgsAttributeEditorSpacerElement)
Parameters:

a0 (QgsAttributeEditorSpacerElement)

abstract clone(self, parent: QgsAttributeEditorElement | None) → QgsAttributeEditorElement | None[source]
Parameters:

parent (QgsAttributeEditorElement|None)

Return type:

QgsAttributeEditorElement|None

drawLine(self) → bool[source]

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

Return type:

bool

setDrawLine(self, drawLine: bool)[source]

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

Parameters:

drawLine (bool) – flag status