Class: QgsLabelObstacleSettingsWidget

A widget for customising label obstacle settings.

Added in version 3.12.

QgsLabelObstacleSettingsWidget

QgsLabelObstacleSettingsWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsLabelObstacleSettingsWidget

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 obstacle settings to show in the widget.

settings

Returns the obstacle settings defined by the widget.

class qgis.gui.QgsLabelObstacleSettingsWidget[source]

Bases: QgsLabelSettingsWidgetBase

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

Constructor for QgsLabelObstacleSettingsWidget.

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

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

setSettings(self, settings: QgsLabelObstacleSettings)[source]

Sets the obstacle settings to show in the widget.

See also

settings()

Parameters:

settings (QgsLabelObstacleSettings)

settings(self) QgsLabelObstacleSettings[source]

Returns the obstacle settings defined by the widget.

See also

setSettings()

Return type:

QgsLabelObstacleSettings