Class: QgsTabPositionWidget

A widget for configuring QgsTextFormat tab positions.

Added in version 3.42.

QgsTabPositionWidget

QgsTabPositionWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsTabPositionWidget

Base classes

QgsPanelWidget

Base class for any widget that can be shown as an inline panel.

QWidget

QObject

QPaintDevice

Methods

positions

Returns the tab positions defined in the widget.

setPositions

Sets the tab positions to show in the widget.

setUnit

Sets the unit type used for the tab positions (used to update interface labels).

Signals

positionsChanged

Emitted when positions are changed in the widget.

class qgis.gui.QgsTabPositionWidget[source]

Bases: QgsPanelWidget

__init__(parent: QWidget | None = None)

Constructor for QgsTabPositionWidget, with the specified parent widget

Parameters:

parent (Optional[QWidget] = None)

positions(self) List[QgsTextFormat.Tab]

Returns the tab positions defined in the widget.

See also

setPositions()

Return type:

List[QgsTextFormat.Tab]

signal positionsChanged(positions: List[QgsTextFormat.Tab])[source]

Emitted when positions are changed in the widget.

Parameters:

positions (List[QgsTextFormat.Tab])

setPositions(self, positions: Iterable[QgsTextFormat.Tab])[source]

Sets the tab positions to show in the widget.

See also

positions()

Parameters:

positions (Iterable[QgsTextFormat.Tab])

setUnit(self, unit: Qgis.RenderUnit)[source]

Sets the unit type used for the tab positions (used to update interface labels).

Parameters:

unit (Qgis.RenderUnit)