QgsPasswordLineEdit class
QLineEdit subclass with built in support for showing/hiding entered password.
Contents
Constructors, destructors, conversion operators
- QgsPasswordLineEdit(QWidget* parent = nullptr, bool passwordVisible = false)
- Constructor for QgsPasswordLineEdit.
Public functions
- void setPasswordVisibility(bool visible)
- Set state of the password's visibility.
- void setShowLockIcon(bool visible)
- Define if a lock icon shall be shown on the left of the widget.
- auto showLockIcon() const -> bool
- Returns if a lock icon shall be shown on the left of the widget.
Function documentation
QgsPasswordLineEdit:: QgsPasswordLineEdit(QWidget* parent = nullptr,
bool passwordVisible = false)
Constructor for QgsPasswordLineEdit.
| Parameters | |
|---|---|
| parent | parent widget |
| passwordVisible | Initial state of the password's visibility |
void QgsPasswordLineEdit:: setShowLockIcon(bool visible)
Define if a lock icon shall be shown on the left of the widget.
| Parameters | |
|---|---|
| visible | set to false to hide the lock icon |