Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtWidgets »

Classe « QLineEdit »

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
builtins.object
    Object
        QObject
            QWidget
                QLineEdit

Définition

class QLineEdit(QWidget):

Description [extrait de QLineEdit.__doc__]

QLineEdit(self, arg__1: str, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None
QLineEdit(self, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
DrawChildrenPySide6.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide6.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
IgnoreMaskPySide6.QtWidgets.QWidget.RenderFlag.IgnoreMask
LeadingPositionPySide6.QtWidgets.QLineEdit.ActionPosition.LeadingPosition
NoEchoPySide6.QtWidgets.QLineEdit.EchoMode.NoEcho
NormalPySide6.QtWidgets.QLineEdit.EchoMode.Normal
PasswordPySide6.QtWidgets.QLineEdit.EchoMode.Password
PasswordEchoOnEditPySide6.QtWidgets.QLineEdit.EchoMode.PasswordEchoOnEdit
PdmDepthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40e25cec40>
TrailingPositionPySide6.QtWidgets.QLineEdit.ActionPosition.TrailingPosition

Attributs statiques hérités de la classe QPaintDevice

painters

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
ActionPosition
addAction addAction(self, action: PySide6.QtGui.QAction) -> None [extrait de addAction.__doc__]
alignment(self) -> PySide6.QtCore.Qt.Alignment alignment(self) -> PySide6.QtCore.Qt.Alignment [extrait de alignment.__doc__]
backspace(self) -> None backspace(self) -> None [extrait de backspace.__doc__]
changeEvent(self, arg__1: PySide6.QtCore.QEvent) -> None changeEvent(self, arg__1: PySide6.QtCore.QEvent) -> None [extrait de changeEvent.__doc__]
clear(self) -> None clear(self) -> None [extrait de clear.__doc__]
completer(self) -> PySide6.QtWidgets.QCompleter completer(self) -> PySide6.QtWidgets.QCompleter [extrait de completer.__doc__]
contextMenuEvent(self, arg__1: PySide6.QtGui.QContextMenuEvent) -> None contextMenuEvent(self, arg__1: PySide6.QtGui.QContextMenuEvent) -> None [extrait de contextMenuEvent.__doc__]
copy(self) -> None copy(self) -> None [extrait de copy.__doc__]
createStandardContextMenu(self) -> PySide6.QtWidgets.QMenu createStandardContextMenu(self) -> PySide6.QtWidgets.QMenu [extrait de createStandardContextMenu.__doc__]
cursorBackward(self, mark: bool, steps: int = 1) -> None cursorBackward(self, mark: bool, steps: int = 1) -> None [extrait de cursorBackward.__doc__]
cursorForward(self, mark: bool, steps: int = 1) -> None cursorForward(self, mark: bool, steps: int = 1) -> None [extrait de cursorForward.__doc__]
cursorMoveStyle(self) -> PySide6.QtCore.Qt.CursorMoveStyle cursorMoveStyle(self) -> PySide6.QtCore.Qt.CursorMoveStyle [extrait de cursorMoveStyle.__doc__]
cursorPosition(self) -> int cursorPosition(self) -> int [extrait de cursorPosition.__doc__]
cursorPositionAt(self, pos: PySide6.QtCore.QPoint) -> int cursorPositionAt(self, pos: PySide6.QtCore.QPoint) -> int [extrait de cursorPositionAt.__doc__]
cursorPositionChanged
cursorRect(self) -> PySide6.QtCore.QRect cursorRect(self) -> PySide6.QtCore.QRect [extrait de cursorRect.__doc__]
cursorWordBackward(self, mark: bool) -> None cursorWordBackward(self, mark: bool) -> None [extrait de cursorWordBackward.__doc__]
cursorWordForward(self, mark: bool) -> None cursorWordForward(self, mark: bool) -> None [extrait de cursorWordForward.__doc__]
customContextMenuRequested
cut(self) -> None cut(self) -> None [extrait de cut.__doc__]
del_(self) -> None del_(self) -> None [extrait de del_.__doc__]
deselect(self) -> None deselect(self) -> None [extrait de deselect.__doc__]
destroyed
displayText(self) -> str displayText(self) -> str [extrait de displayText.__doc__]
dragEnabled(self) -> bool dragEnabled(self) -> bool [extrait de dragEnabled.__doc__]
dragEnterEvent(self, arg__1: PySide6.QtGui.QDragEnterEvent) -> None dragEnterEvent(self, arg__1: PySide6.QtGui.QDragEnterEvent) -> None [extrait de dragEnterEvent.__doc__]
dragLeaveEvent(self, e: PySide6.QtGui.QDragLeaveEvent) -> None dragLeaveEvent(self, e: PySide6.QtGui.QDragLeaveEvent) -> None [extrait de dragLeaveEvent.__doc__]
dragMoveEvent(self, e: PySide6.QtGui.QDragMoveEvent) -> None dragMoveEvent(self, e: PySide6.QtGui.QDragMoveEvent) -> None [extrait de dragMoveEvent.__doc__]
dropEvent(self, arg__1: PySide6.QtGui.QDropEvent) -> None dropEvent(self, arg__1: PySide6.QtGui.QDropEvent) -> None [extrait de dropEvent.__doc__]
EchoMode
echoMode(self) -> PySide6.QtWidgets.QLineEdit.EchoMode echoMode(self) -> PySide6.QtWidgets.QLineEdit.EchoMode [extrait de echoMode.__doc__]
editingFinished
end(self, mark: bool) -> None end(self, mark: bool) -> None [extrait de end.__doc__]
event(self, arg__1: PySide6.QtCore.QEvent) -> bool event(self, arg__1: PySide6.QtCore.QEvent) -> bool [extrait de event.__doc__]
focusInEvent(self, arg__1: PySide6.QtGui.QFocusEvent) -> None focusInEvent(self, arg__1: PySide6.QtGui.QFocusEvent) -> None [extrait de focusInEvent.__doc__]
focusOutEvent(self, arg__1: PySide6.QtGui.QFocusEvent) -> None focusOutEvent(self, arg__1: PySide6.QtGui.QFocusEvent) -> None [extrait de focusOutEvent.__doc__]
hasAcceptableInput(self) -> bool hasAcceptableInput(self) -> bool [extrait de hasAcceptableInput.__doc__]
hasFrame(self) -> bool hasFrame(self) -> bool [extrait de hasFrame.__doc__]
hasSelectedText(self) -> bool hasSelectedText(self) -> bool [extrait de hasSelectedText.__doc__]
home(self, mark: bool) -> None home(self, mark: bool) -> None [extrait de home.__doc__]
initStyleOption(self, option: PySide6.QtWidgets.QStyleOptionFrame) -> None initStyleOption(self, option: PySide6.QtWidgets.QStyleOptionFrame) -> None [extrait de initStyleOption.__doc__]
inputMask(self) -> str inputMask(self) -> str [extrait de inputMask.__doc__]
inputMethodEvent(self, arg__1: PySide6.QtGui.QInputMethodEvent) -> None inputMethodEvent(self, arg__1: PySide6.QtGui.QInputMethodEvent) -> None [extrait de inputMethodEvent.__doc__]
inputMethodQuery inputMethodQuery(self, arg__1: PySide6.QtCore.Qt.InputMethodQuery) -> Any [extrait de inputMethodQuery.__doc__]
inputRejected
insert(self, arg__1: str) -> None insert(self, arg__1: str) -> None [extrait de insert.__doc__]
isClearButtonEnabled(self) -> bool isClearButtonEnabled(self) -> bool [extrait de isClearButtonEnabled.__doc__]
isModified(self) -> bool isModified(self) -> bool [extrait de isModified.__doc__]
isReadOnly(self) -> bool isReadOnly(self) -> bool [extrait de isReadOnly.__doc__]
isRedoAvailable(self) -> bool isRedoAvailable(self) -> bool [extrait de isRedoAvailable.__doc__]
isUndoAvailable(self) -> bool isUndoAvailable(self) -> bool [extrait de isUndoAvailable.__doc__]
keyPressEvent(self, arg__1: PySide6.QtGui.QKeyEvent) -> None keyPressEvent(self, arg__1: PySide6.QtGui.QKeyEvent) -> None [extrait de keyPressEvent.__doc__]
keyReleaseEvent(self, arg__1: PySide6.QtGui.QKeyEvent) -> None keyReleaseEvent(self, arg__1: PySide6.QtGui.QKeyEvent) -> None [extrait de keyReleaseEvent.__doc__]
maxLength(self) -> int maxLength(self) -> int [extrait de maxLength.__doc__]
minimumSizeHint(self) -> PySide6.QtCore.QSize minimumSizeHint(self) -> PySide6.QtCore.QSize [extrait de minimumSizeHint.__doc__]
mouseDoubleClickEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None mouseDoubleClickEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None [extrait de mouseDoubleClickEvent.__doc__]
mouseMoveEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None mouseMoveEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None [extrait de mouseMoveEvent.__doc__]
mousePressEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None mousePressEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None mouseReleaseEvent(self, arg__1: PySide6.QtGui.QMouseEvent) -> None [extrait de mouseReleaseEvent.__doc__]
objectNameChanged
paintEvent(self, arg__1: PySide6.QtGui.QPaintEvent) -> None paintEvent(self, arg__1: PySide6.QtGui.QPaintEvent) -> None [extrait de paintEvent.__doc__]
paste(self) -> None paste(self) -> None [extrait de paste.__doc__]
placeholderText(self) -> str placeholderText(self) -> str [extrait de placeholderText.__doc__]
redo(self) -> None redo(self) -> None [extrait de redo.__doc__]
returnPressed
selectAll(self) -> None selectAll(self) -> None [extrait de selectAll.__doc__]
selectedText(self) -> str selectedText(self) -> str [extrait de selectedText.__doc__]
selectionChanged
selectionEnd(self) -> int selectionEnd(self) -> int [extrait de selectionEnd.__doc__]
selectionLength(self) -> int selectionLength(self) -> int [extrait de selectionLength.__doc__]
selectionStart(self) -> int selectionStart(self) -> int [extrait de selectionStart.__doc__]
setAlignment(self, flag: PySide6.QtCore.Qt.Alignment) -> None setAlignment(self, flag: PySide6.QtCore.Qt.Alignment) -> None [extrait de setAlignment.__doc__]
setClearButtonEnabled(self, enable: bool) -> None setClearButtonEnabled(self, enable: bool) -> None [extrait de setClearButtonEnabled.__doc__]
setCompleter(self, completer: PySide6.QtWidgets.QCompleter) -> None setCompleter(self, completer: PySide6.QtWidgets.QCompleter) -> None [extrait de setCompleter.__doc__]
setCursorMoveStyle(self, style: PySide6.QtCore.Qt.CursorMoveStyle) -> None setCursorMoveStyle(self, style: PySide6.QtCore.Qt.CursorMoveStyle) -> None [extrait de setCursorMoveStyle.__doc__]
setCursorPosition(self, arg__1: int) -> None setCursorPosition(self, arg__1: int) -> None [extrait de setCursorPosition.__doc__]
setDragEnabled(self, b: bool) -> None setDragEnabled(self, b: bool) -> None [extrait de setDragEnabled.__doc__]
setEchoMode(self, arg__1: PySide6.QtWidgets.QLineEdit.EchoMode) -> None setEchoMode(self, arg__1: PySide6.QtWidgets.QLineEdit.EchoMode) -> None [extrait de setEchoMode.__doc__]
setFrame(self, arg__1: bool) -> None setFrame(self, arg__1: bool) -> None [extrait de setFrame.__doc__]
setInputMask(self, inputMask: str) -> None setInputMask(self, inputMask: str) -> None [extrait de setInputMask.__doc__]
setMaxLength(self, arg__1: int) -> None setMaxLength(self, arg__1: int) -> None [extrait de setMaxLength.__doc__]
setModified(self, arg__1: bool) -> None setModified(self, arg__1: bool) -> None [extrait de setModified.__doc__]
setPlaceholderText(self, arg__1: str) -> None setPlaceholderText(self, arg__1: str) -> None [extrait de setPlaceholderText.__doc__]
setReadOnly(self, arg__1: bool) -> None setReadOnly(self, arg__1: bool) -> None [extrait de setReadOnly.__doc__]
setSelection(self, arg__1: int, arg__2: int) -> None setSelection(self, arg__1: int, arg__2: int) -> None [extrait de setSelection.__doc__]
setText(self, arg__1: str) -> None setText(self, arg__1: str) -> None [extrait de setText.__doc__]
setTextMargins setTextMargins(self, left: int, top: int, right: int, bottom: int) -> None [extrait de setTextMargins.__doc__]
setValidator(self, arg__1: PySide6.QtGui.QValidator) -> None setValidator(self, arg__1: PySide6.QtGui.QValidator) -> None [extrait de setValidator.__doc__]
sizeHint(self) -> PySide6.QtCore.QSize sizeHint(self) -> PySide6.QtCore.QSize [extrait de sizeHint.__doc__]
text(self) -> str text(self) -> str [extrait de text.__doc__]
textChanged
textEdited
textMargins(self) -> PySide6.QtCore.QMargins textMargins(self) -> PySide6.QtCore.QMargins [extrait de textMargins.__doc__]
timerEvent(self, arg__1: PySide6.QtCore.QTimerEvent) -> None timerEvent(self, arg__1: PySide6.QtCore.QTimerEvent) -> None [extrait de timerEvent.__doc__]
tr
undo(self) -> None undo(self) -> None [extrait de undo.__doc__]
validator(self) -> PySide6.QtGui.QValidator validator(self) -> PySide6.QtGui.QValidator [extrait de validator.__doc__]
windowIconChanged
windowIconTextChanged
windowTitleChanged

Méthodes héritées de la classe QWidget

__init_subclass__, __repr__, __subclasshook__, acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addActions, adjustSize, autoFillBackground, backgroundRole, backingStore, baseSize, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsMargins, contentsRect, contextMenuPolicy, create, createWindowContainer, createWinId, cursor, destroy, devType, effectiveWinId, ensurePolished, enterEvent, find, focusNextChild, focusNextPrevChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, hide, hideEvent, initPainter, inputMethodHints, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseGrabber, move, moveEvent, nativeEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, parentWidget, pos, previousInFocusChain, raise_, rect, redirected, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, RenderFlag, RenderFlags, repaint, resize, resizeEvent, restoreGeometry, saveGeometry, screen, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGraphicsEffect, setHidden, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setScreen, setShortcutAutoRepeat, setShortcutEnabled, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabletTracking, setTabOrder, setToolTip, setToolTipDuration, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlag, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, sharedPainter, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, toolTipDuration, topLevelWidget, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, width, window, windowFilePath, windowFlags, windowHandle, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, winId, x, y

Méthodes héritées de la classe QPaintDevice

__init_subclass__, __subclasshook__, colorCount, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, devType, height, heightMM, initPainter, logicalDpiX, logicalDpiY, metric, PaintDeviceMetric, paintEngine, paintingActive, physicalDpiX, physicalDpiY, redirected, sharedPainter, width, widthMM

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread

Méthodes héritées de la classe Object

__getattribute__, __init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__