Class: QgsSettingsStringComboBoxWrapper

This class is a factory of editor for string settings with a combo box

Added in version 3.40.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsSettingsStringComboBoxWrapper

Base classes

QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQComboBoxQStringBase

This class is a base factory of editor 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:
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