Class: QgsLabelRemoveDuplicatesSettingsWidget

A widget for customising label duplicate removal settings.

Added in version 3.12.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsLabelRemoveDuplicatesSettingsWidget

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

settings

Returns the thinning settings defined by the widget.

class qgis.gui.QgsLabelRemoveDuplicatesSettingsWidget[source]

Bases: QgsLabelSettingsWidgetBase

__init__(parent: QWidget | None = None, layer: QgsMapLayer | None = None)

Constructor for QgsLabelRemoveDuplicatesSettingsWidget.

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

  • layer (Optional[QgsMapLayer] = None) – associated layer

setSettings(self, settings: QgsLabelThinningSettings)[source]

Sets the thinning settings to show in the widget.

See also

settings()

Parameters:

settings (QgsLabelThinningSettings)

settings(self) QgsLabelThinningSettings[source]

Returns the thinning settings defined by the widget.

See also

setSettings()

Return type:

QgsLabelThinningSettings