Class: QgsAuthConfigSelect

class qgis.gui.QgsAuthConfigSelect

Bases: PyQt5.QtWidgets.QWidget

Selector widget for authentication configs

QgsAuthConfigSelect(parent: QWidget = None, dataprovider: str = ‘’) Create a dialog for setting an associated authentication config, either from existing configs, or creating/removing them from auth database

actionEvent(self, QActionEvent)
changeEvent(self, QEvent)
childEvent(self, QChildEvent)

Clear and hide small message bar

closeEvent(self, QCloseEvent)
configId(self) str

Gets the authentication config id for the resource

Return type


connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
customEvent(self, QEvent)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
enterEvent(self, QEvent)
event(self, QEvent) bool
focusInEvent(self, QFocusEvent)
focusNextChild(self) bool
focusNextPrevChild(self, bool) bool
focusOutEvent(self, QFocusEvent)
focusPreviousChild(self) bool
hideEvent(self, QHideEvent)
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod) bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
leaveEvent(self, QEvent)
metric(self, QPaintDevice.PaintDeviceMetric) int
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) Tuple[bool, int]
paintEvent(self, QPaintEvent)
receivers(self, PYQT_SIGNAL) int
resizeEvent(self, QResizeEvent)

Emitted when authentication config is changed or missing [signal]


authcfg (str) –


Emitted when authentication config is removed [signal]


authcfg (str) –

sender(self) QObject
senderSignalIndex(self) int
setConfigId(self, authcfg: str)

Sets the authentication config id for the resource


authcfg (str) –

setDataProviderKey(self, key: str)

Sets key of layer provider, if applicable


key (str) –

sharedPainter(self) QPainter
showEvent(self, QShowEvent)
showMessage(self, msg: str)

Show a small message bar with a close button


msg (str) –

tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
wheelEvent(self, QWheelEvent)