Subgroup: other

Class: QgsPasswordLineEdit

class qgis.gui.QgsPasswordLineEdit

Bases: PyQt5.QtWidgets.QLineEdit

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

New in version 3.0.

  • Methods

    acceptDrops
    accessibleDescription
    accessibleName
    actionEvent
    actions
    activateWindow
    addAction addAction(self, QAction, QLineEdit.ActionPosition)
    addActions
    adjustSize
    alignment
    autoFillBackground
    backgroundRole
    backspace
    baseSize
    blockSignals
    changeEvent
    childAt childAt(self, int, int) -> QWidget
    childEvent
    children
    childrenRect
    childrenRegion
    clear
    clearFocus
    clearMask
    close
    closeEvent
    colorCount
    completer
    connectNotify
    contentsMargins
    contentsRect
    contextMenuEvent
    contextMenuPolicy
    copy
    create
    createStandardContextMenu
    createWindowContainer
    cursor
    cursorBackward
    cursorForward
    cursorMoveStyle
    cursorPosition
    cursorPositionAt
    cursorRect
    cursorWordBackward
    cursorWordForward
    customEvent
    cut
    del_
    deleteLater
    depth
    deselect
    destroy
    devType
    devicePixelRatio
    devicePixelRatioF
    devicePixelRatioFScale
    disconnect
    disconnectNotify
    displayText
    dragEnabled
    dragEnterEvent
    dragLeaveEvent
    dragMoveEvent
    dropEvent
    dumpObjectInfo
    dumpObjectTree
    dynamicPropertyNames
    echoMode
    effectiveWinId
    end
    ensurePolished
    enterEvent
    event
    eventFilter
    find
    findChild findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
    findChildren findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
    focusInEvent
    focusNextChild
    focusNextPrevChild
    focusOutEvent
    focusPolicy
    focusPreviousChild
    focusProxy
    focusWidget
    font
    fontInfo
    fontMetrics
    foregroundRole
    frameGeometry
    frameSize
    geometry
    getContentsMargins
    getTextMargins
    grab
    grabGesture
    grabKeyboard
    grabMouse grabMouse(self, Union[QCursor, Qt.CursorShape])
    grabShortcut
    graphicsEffect
    graphicsProxyWidget
    hasAcceptableInput
    hasFocus
    hasFrame
    hasHeightForWidth
    hasMouseTracking
    hasSelectedText
    hasTabletTracking
    height
    heightForWidth
    heightMM
    hide
    hideEvent
    home
    inherits
    initPainter
    initStyleOption
    inputMask
    inputMethodEvent
    inputMethodHints
    inputMethodQuery inputMethodQuery(self, Qt.InputMethodQuery, Any) -> Any
    insert
    insertAction
    insertActions
    installEventFilter
    isActiveWindow
    isAncestorOf
    isClearButtonEnabled
    isEnabled
    isEnabledTo
    isFullScreen
    isHidden
    isLeftToRight
    isMaximized
    isMinimized
    isModal
    isModified
    isReadOnly
    isRedoAvailable
    isRightToLeft
    isSignalConnected
    isUndoAvailable
    isVisible
    isVisibleTo
    isWidgetType
    isWindow
    isWindowModified
    isWindowType
    keyPressEvent
    keyReleaseEvent
    keyboardGrabber
    killTimer
    layout
    layoutDirection
    leaveEvent
    locale
    logicalDpiX
    logicalDpiY
    lower
    mapFrom
    mapFromGlobal
    mapFromParent
    mapTo
    mapToGlobal
    mapToParent
    mask
    maxLength
    maximumHeight
    maximumSize
    maximumWidth
    metaObject
    metric
    minimumHeight
    minimumSize
    minimumSizeHint
    minimumWidth
    mouseDoubleClickEvent
    mouseGrabber
    mouseMoveEvent
    mousePressEvent
    mouseReleaseEvent
    move move(self, int, int)
    moveEvent
    moveToThread
    nativeEvent
    nativeParentWidget
    nextInFocusChain
    normalGeometry
    objectName
    overrideWindowFlags
    overrideWindowState
    paintEngine
    paintEvent
    paintingActive
    palette
    parent
    parentWidget
    paste
    physicalDpiX
    physicalDpiY
    placeholderText
    pos
    previousInFocusChain
    property
    pyqtConfigure Each keyword argument is either the name of a Qt property or a Qt signal.
    raise_
    receivers
    rect
    redo
    releaseKeyboard
    releaseMouse
    releaseShortcut
    removeAction
    removeEventFilter
    render render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground|QWidget.DrawChildren))
    repaint repaint(self, int, int, int, int)
    resize resize(self, int, int)
    resizeEvent
    restoreGeometry
    saveGeometry
    scroll scroll(self, int, int, QRect)
    selectAll
    selectedText
    selectionStart
    sender
    senderSignalIndex
    setAcceptDrops
    setAccessibleDescription
    setAccessibleName
    setAlignment
    setAttribute
    setAutoFillBackground
    setBackgroundRole
    setBaseSize setBaseSize(self, QSize)
    setClearButtonEnabled
    setCompleter
    setContentsMargins setContentsMargins(self, QMargins)
    setContextMenuPolicy
    setCursor
    setCursorMoveStyle
    setCursorPosition
    setDisabled
    setDragEnabled
    setEchoMode
    setEnabled
    setFixedHeight
    setFixedSize setFixedSize(self, int, int)
    setFixedWidth
    setFocus setFocus(self, Qt.FocusReason)
    setFocusPolicy
    setFocusProxy
    setFont
    setForegroundRole
    setFrame
    setGeometry setGeometry(self, int, int, int, int)
    setGraphicsEffect
    setHidden
    setInputMask
    setInputMethodHints
    setLayout
    setLayoutDirection
    setLocale
    setMask setMask(self, QRegion)
    setMaxLength
    setMaximumHeight
    setMaximumSize setMaximumSize(self, QSize)
    setMaximumWidth
    setMinimumHeight
    setMinimumSize setMinimumSize(self, QSize)
    setMinimumWidth
    setModified
    setMouseTracking
    setObjectName
    setPalette
    setParent setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])
    setPasswordVisibility Set state of the password’s visibility
    setPlaceholderText
    setProperty
    setReadOnly
    setSelection
    setShortcutAutoRepeat
    setShortcutEnabled
    setShowLockIcon Define if a lock icon shall be shown on the left of the widget
    setSizeIncrement setSizeIncrement(self, QSize)
    setSizePolicy setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)
    setStatusTip
    setStyle
    setStyleSheet
    setTabOrder
    setTabletTracking
    setText
    setTextMargins setTextMargins(self, QMargins)
    setToolTip
    setToolTipDuration
    setUpdatesEnabled
    setValidator
    setVisible
    setWhatsThis
    setWindowFilePath
    setWindowFlag
    setWindowFlags
    setWindowIcon
    setWindowIconText
    setWindowModality
    setWindowModified
    setWindowOpacity
    setWindowRole
    setWindowState
    setWindowTitle
    sharedPainter
    show
    showEvent
    showFullScreen
    showLockIcon Returns if a lock icon shall be shown on the left of the widget
    showMaximized
    showMinimized
    showNormal
    signalsBlocked
    size
    sizeHint
    sizeIncrement
    sizePolicy
    stackUnder
    startTimer
    statusTip
    style
    styleSheet
    tabletEvent
    testAttribute
    text
    textMargins
    thread
    timerEvent
    toolTip
    toolTipDuration
    tr
    underMouse
    undo
    ungrabGesture
    unsetCursor
    unsetLayoutDirection
    unsetLocale
    update update(self, QRect)
    updateGeometry
    updateMicroFocus
    updatesEnabled
    validator
    visibleRegion
    whatsThis
    wheelEvent
    width
    widthMM
    winId
    window
    windowFilePath
    windowFlags
    windowHandle
    windowIcon
    windowIconText
    windowModality
    windowOpacity
    windowRole
    windowState
    windowTitle
    windowType
    x
    y

    Attributes

    DrawChildren
    DrawWindowBackground
    IgnoreMask
    LeadingPosition
    NoEcho
    Normal
    Password
    PasswordEchoOnEdit
    PdmDepth
    PdmDevicePixelRatio
    PdmDevicePixelRatioScaled
    PdmDpiX
    PdmDpiY
    PdmHeight
    PdmHeightMM
    PdmNumColors
    PdmPhysicalDpiX
    PdmPhysicalDpiY
    PdmWidth
    PdmWidthMM
    TrailingPosition
    cursorPositionChanged cursorPositionChanged(self, int, int) [signal]
    customContextMenuRequested customContextMenuRequested(self, QPoint) [signal]
    destroyed destroyed(self, QObject = None) [signal]
    editingFinished editingFinished(self) [signal]
    objectNameChanged objectNameChanged(self, str) [signal]
    returnPressed returnPressed(self) [signal]
    selectionChanged selectionChanged(self) [signal]
    staticMetaObject
    textChanged textChanged(self, str) [signal]
    textEdited textEdited(self, str) [signal]
    windowIconChanged windowIconChanged(self, QIcon) [signal]
    windowIconTextChanged windowIconTextChanged(self, str) [signal]
    windowTitleChanged windowTitleChanged(self, str) [signal]
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()