Class: QgsPasswordLineEdit¶
QLineEdit subclass with built in support for showing/hiding the entered password.
Class Hierarchy¶
Base classes¶
Methods
Set state of the password's visibility |
|
Define if a lock icon shall be shown on the left of the widget |
|
Returns if a lock icon shall be shown on the left of the widget |
- class qgis.gui.QgsPasswordLineEdit[source]¶
Bases:
QLineEdit
- __init__(parent: QWidget | None = None, passwordVisible: bool = False)
Constructor for QgsPasswordLineEdit.
- Parameters:
parent (Optional[QWidget] = None) – parent widget
passwordVisible (bool = False) – Initial state of the password’s visibility
- setPasswordVisibility(self, visible: bool)[source]¶
Set state of the password’s visibility
- Parameters:
visible (bool)