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
- Parameters
parent – Parent widget
dataprovider –
The key of the calling layer provider, if applicable
Methods
Clear and hide small message bar
Gets the authentication config id for the resource
Sets the authentication config id for the resource
Sets key of layer provider, if applicable
Show a small message bar with a close button
Signals
Emitted when authentication config is changed or missing [signal]
Emitted when authentication config is removed [signal]
- actionEvent(self, QActionEvent)¶
- changeEvent(self, QEvent)¶
- childEvent(self, QChildEvent)¶
- clearMessage(self)¶
Clear and hide small message bar
- closeEvent(self, QCloseEvent)¶
- configId(self) str ¶
Gets the authentication config id for the resource
- Return type
str
- 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)¶
- selectedConfigIdChanged¶
Emitted when authentication config is changed or missing [signal]
- Parameters
authcfg (str) –
- selectedConfigIdRemoved¶
Emitted when authentication config is removed [signal]
- Parameters
authcfg (str) –
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setConfigId(self, authcfg: str)¶
Sets the authentication config id for the resource
- Parameters
authcfg (str) –
- setDataProviderKey(self, key: str)¶
Sets key of layer provider, if applicable
- Parameters
key (str) –
- showEvent(self, QShowEvent)¶
- showMessage(self, msg: str)¶
Show a small message bar with a close button
- Parameters
msg (str) –
- tabletEvent(self, QTabletEvent)¶
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- wheelEvent(self, QWheelEvent)¶