Subgroup: other

Class: QgsPasswordLineEdit

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

Bases: PyQt5.QtWidgets.QLineEdit

Constructor for QgsPasswordLineEdit.

Parameters:
  • parent – parent widget
  • passwordVisible – Initial state of the password’s visibility

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

New in version 3.0.

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

setShowLockIcon(self, visible: bool)

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

Parameters:visible – 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

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