QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsPasswordLineEdit Class Reference

QLineEdit subclass with built in support for showing/hiding the entered password. More...

#include <qgspasswordlineedit.h>

Inheritance diagram for QgsPasswordLineEdit:

Public Member Functions

 QgsPasswordLineEdit (QWidget *parent=nullptr, bool passwordVisible=false)
 Constructor for QgsPasswordLineEdit.
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.
bool showLockIcon () const
 Returns if a lock icon shall be shown on the left of the widget.

Properties

bool showLockIcon

Detailed Description

QLineEdit subclass with built in support for showing/hiding the entered password.

Definition at line 32 of file qgspasswordlineedit.h.

Constructor & Destructor Documentation

◆ QgsPasswordLineEdit()

QgsPasswordLineEdit::QgsPasswordLineEdit ( QWidget * parent = nullptr,
bool passwordVisible = false )

Constructor for QgsPasswordLineEdit.

Parameters
parentparent widget
passwordVisibleInitial state of the password's visibility

Definition at line 24 of file qgspasswordlineedit.cpp.

Member Function Documentation

◆ setPasswordVisibility()

void QgsPasswordLineEdit::setPasswordVisibility ( bool visible)

Set state of the password's visibility.

Definition at line 42 of file qgspasswordlineedit.cpp.

◆ setShowLockIcon()

void QgsPasswordLineEdit::setShowLockIcon ( bool visible)

Define if a lock icon shall be shown on the left of the widget.

Parameters
visibleset to false to hide the lock icon

Definition at line 63 of file qgspasswordlineedit.cpp.

◆ showLockIcon()

bool QgsPasswordLineEdit::showLockIcon ( ) const
inline

Returns if a lock icon shall be shown on the left of the widget.

Definition at line 54 of file qgspasswordlineedit.h.

Property Documentation

◆ showLockIcon

bool QgsPasswordLineEdit::showLockIcon
readwrite

Definition at line 35 of file qgspasswordlineedit.h.


The documentation for this class was generated from the following files: