Class: QgsPasswordLineEdit

class qgis.gui.QgsPasswordLineEdit(parent: QWidget = None, passwordVisible: bool = False)

Bases: PyQt5.QtWidgets.QLineEdit

Constructor for QgsPasswordLineEdit.

Parameters
  • parent (QWidget = None) – parent widget

  • passwordVisible (bool = False) – Initial state of the password’s visibility

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

actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
cursorRect()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
initStyleOption()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
sender()
senderSignalIndex()
setPasswordVisibility(self, visible: bool)

Set state of the password’s visibility

Parameters

visible (bool) –

setShowLockIcon(self, visible: bool)

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

Parameters

visible (bool) – set to false to hide the lock icon

sharedPainter()
showEvent()
showLockIcon(self) → bool

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

Return type

bool

tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()