Class: QgsSpacerWidgetWrapper

class qgis.gui.QgsSpacerWidgetWrapper

Bases: QgsWidgetWrapper

Wraps a spacer widget.

Added in version 3.30.

QgsSpacerWidgetWrapper(layer: Optional[QgsVectorLayer], editor: Optional[QWidget] = None, parent: Optional[QWidget] = None) Create a new widget wrapper

Parameters:
childEvent(self, a0: QChildEvent | None)
connectNotify(self, signal: QMetaMethod)
createWidget(self, parent: QWidget | None) QWidget | None
Parameters:

parent (Optional[QWidget])

Return type:

Optional[QWidget]

customEvent(self, a0: QEvent | None)
disconnectNotify(self, signal: QMetaMethod)
drawLine(self) bool

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

Return type:

bool

initWidget(self, editor: QWidget | None)

This method should initialize the editor widget with runtime data. Fill your comboboxes here.

Parameters:

editor – The widget which will represent this attribute editor in a form.

isSignalConnected(self, signal: QMetaMethod) bool
receivers(self, signal: PYQT_SIGNAL) int
sender(self) QObject | None
senderSignalIndex(self) int
setDrawLine(self, drawLine: bool)

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

Parameters:

drawLine (bool) – flag status

setFeature(self, feature: QgsFeature)
Parameters:

feature (QgsFeature)

timerEvent(self, a0: QTimerEvent | None)
valid(self) bool
Return type:

bool