Class: QgsLabelLineAnchorWidget

A widget for customising label line anchor settings.

Added in version 3.16.

QgsLabelLineAnchorWidget

QgsLabelLineAnchorWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsLabelLineAnchorWidget

Base classes

QgsLabelSettingsWidgetBase

Base class for widgets which allow customization of label engine properties, such as label placement settings.

QgsPanelWidget

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

QWidget

QObject

QPaintDevice

Methods

setSettings

Sets the line settings to show in the widget.

settings

Returns the line settings defined by the widget.

class qgis.gui.QgsLabelLineAnchorWidget[source]

Bases: QgsLabelSettingsWidgetBase

__init__(parent: QWidget | None = None, vl: QgsVectorLayer | None = None)

Constructor for QgsLabelLineAnchorWidget.

Parameters:
  • parent (Optional[QWidget] = None) – parent widget

  • vl (Optional[QgsVectorLayer] = None) – associated vector layer

setSettings(self, settings: QgsLabelLineSettings)[source]

Sets the line settings to show in the widget.

See also

settings()

Parameters:

settings (QgsLabelLineSettings)

settings(self) QgsLabelLineSettings[source]

Returns the line settings defined by the widget.

See also

setSettings()

Return type:

QgsLabelLineSettings