Class: QgsAuthConfigUriEdit

Dialog wrapper of select widget to edit an authcfg in a data source URI.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsAuthConfigUriEdit

Base classes

QDialog

QWidget

QObject

QPaintDevice

class qgis.gui.QgsAuthConfigUriEdit[source]

Bases: QDialog

__init__(parent: QWidget | None = None, datauri: str | None = '', dataprovider: str | None = '')

Construct wrapper dialog for select widget to edit an authcfg in a data source URI

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

  • datauri (Optional[str] = '') – URI string optionally containing a authcfg=ID substring

  • dataprovider (Optional[str] = '') – The key of the calling layer provider, if applicable

dataSourceUri(self) str[source]

The returned, possibly edited data source URI

Return type:

str

static hasConfigId(txt: str | None) bool[source]

Whether a string contains an authcfg ID

Parameters:

txt (Optional[str])

Return type:

bool

setDataSourceUri(self, datauri: str | None)[source]

Sets the data source URI to parse

Parameters:

datauri (Optional[str])