Class: QgsSettingsStringComboBoxWrapper

A factory for editors of string settings with a combo box.

Added in version 3.40.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsSettingsStringComboBoxWrapper

Base classes

QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQComboBoxQStringBase

Base factory for editors for settings.

QgsSettingsEditorWidgetWrapper

Base class for settings editor wrappers.

QObject

Enums

Mode

Mode to determine if the value is hold in the combo box text or data

class qgis.gui.QgsSettingsStringComboBoxWrapper[source]

Bases: QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQComboBoxQStringBase

__init__(parent: QObject | None = None)

Constructor of the factory

Parameters:

parent (Optional[QObject] = None)

__init__(editor: QWidget | None, setting: QgsSettingsEntryBase | None, dynamicKeyPartList: Iterable[str | None] = [])

Constructor of the wrapper for a given setting and its widget editor

Parameters:
  • editor (Optional[QWidget])

  • setting (Optional[QgsSettingsEntryBase])

  • dynamicKeyPartList (Iterable[Optional[str]] = [])

__init__(editor: QWidget | None, setting: QgsSettingsEntryBase | None, mode: QgsSettingsStringComboBoxWrapper.Mode, dynamicKeyPartList: Iterable[str | None] = [])

Constructor of the wrapper for a given setting and its widget editor

Parameters:
__init__(editor: QWidget | None, setting: QgsSettingsEntryBase | None, mode: QgsSettingsStringComboBoxWrapper.Mode, role: int, dynamicKeyPartList: Iterable[str | None] = [])

Added in version 3.44.3.

Parameters:
class Mode(*values)

Bases: IntEnum

Mode to determine if the value is hold in the combo box text or data

  • Text: Value is defined as the text entry

  • Data: Value is defined as data entry with Qt.UserRole

Data = 1
Text = 0