Class: QgsExpressionStoreDialog

A generic dialog for editing expression text, label and help text.

Added in version 3.12.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsExpressionStoreDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Methods

expression

Returns the expression text

helpText

Returns the help text

label

Returns the label text

class qgis.gui.QgsExpressionStoreDialog[source]

Bases: QDialog

__init__(label: str | None, expression: str | None, helpText: str | None, existingLabels: Iterable[str | None] = [], parent: QWidget | None = None)

Creates a QgsExpressionStoreDialog with given label, expression and helpText. existingLabels is an optional list of existing labels for unique label validation, parent is the optional parent widget.

Parameters:
  • label (Optional[str])

  • expression (Optional[str])

  • helpText (Optional[str])

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

  • parent (Optional[QWidget] = None)

expression(self) str[source]

Returns the expression text

Return type:

str

helpText(self) str[source]

Returns the help text

Return type:

str

label(self) str[source]

Returns the label text

Return type:

str