Class: QgsSubstitutionListDialog

A dialog which allows users to specify a list of substitutions to apply to a string, with options for exporting and importing substitution lists.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsSubstitutionListDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Methods

setSubstitutions

Sets the list of substitutions to show in the dialog.

substitutions

Returns the list of substitutions currently defined by the dialog.

class qgis.gui.QgsSubstitutionListDialog[source]

Bases: QDialog

__init__(parent: QWidget | None = None)

Constructor for QgsSubstitutionListDialog.

Parameters:

parent (Optional[QWidget] = None) – parent widget

setSubstitutions(self, substitutions: QgsStringReplacementCollection)[source]

Sets the list of substitutions to show in the dialog.

Parameters:

substitutions (QgsStringReplacementCollection) – substitution list

See also

substitutions()

substitutions(self) QgsStringReplacementCollection[source]

Returns the list of substitutions currently defined by the dialog.

Return type:

QgsStringReplacementCollection