Class: QgsPasswordLineEdit¶
QLineEdit subclass with built in support for showing/hiding the entered password.
Class Hierarchy¶
Base classes¶
- 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)