QgsAuthConfigSelect class
Selector widget for authentication configs.
Contents
Constructors, destructors, conversion operators
- QgsAuthConfigSelect(QWidget* parent = nullptr, const QString& dataprovider = QString()) explicit
- Create a dialog for setting an associated authentication config, either from existing configs, or creating/removing them from auth database.
Public functions
- auto configId() const -> const QString
- Gets the authentication config id for the resource.
- void setConfigId(const QString& authcfg)
- Sets the authentication config id for the resource.
- void setDataProviderKey(const QString& key)
- Sets key of layer provider, if applicable.
Signals
- void selectedConfigIdChanged(const QString& authcfg)
- Emitted when authentication config is changed or missing.
- void selectedConfigIdRemoved(const QString& authcfg)
- Emitted when authentication config is removed.
Public slots
- void clearMessage()
- Clear and hide small message bar.
- void showMessage(const QString& msg)
- Show a small message bar with a close button.
Function documentation
QgsAuthConfigSelect:: QgsAuthConfigSelect(QWidget* parent = nullptr,
const QString& dataprovider = QString()) explicit
Create a dialog for setting an associated authentication config, either from existing configs, or creating/removing them from auth database.
| Parameters | |
|---|---|
| parent | Parent widget |
| dataprovider | The key of the calling layer provider, if applicable |