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 « PySide2.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: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = None)
QLineEdit(self, parent: typing.Union[PySide2.QtWidgets.QWidget, NoneType] = 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__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
DrawChildrenPySide2.QtWidgets.QWidget.RenderFlag.DrawChildren
DrawWindowBackgroundPySide2.QtWidgets.QWidget.RenderFlag.DrawWindowBackground
IgnoreMaskPySide2.QtWidgets.QWidget.RenderFlag.IgnoreMask
LeadingPositionPySide2.QtWidgets.QLineEdit.ActionPosition.LeadingPosition
NoEchoPySide2.QtWidgets.QLineEdit.EchoMode.NoEcho
NormalPySide2.QtWidgets.QLineEdit.EchoMode.Normal
PasswordPySide2.QtWidgets.QLineEdit.EchoMode.Password
PasswordEchoOnEditPySide2.QtWidgets.QLineEdit.EchoMode.PasswordEchoOnEdit
PdmDepthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe35a2e540>
TrailingPositionPySide2.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: PySide2.QtWidgets.QAction) [extrait de addAction.__doc__]
alignment(self) -> PySide2.QtCore.Qt.Alignment alignment(self) -> PySide2.QtCore.Qt.Alignment [extrait de alignment.__doc__]
backspace(self) backspace(self) [extrait de backspace.__doc__]
changeEvent(self, arg__1: PySide2.QtCore.QEvent) changeEvent(self, arg__1: PySide2.QtCore.QEvent) [extrait de changeEvent.__doc__]
clear(self) clear(self) [extrait de clear.__doc__]
completer(self) -> PySide2.QtWidgets.QCompleter completer(self) -> PySide2.QtWidgets.QCompleter [extrait de completer.__doc__]
contextMenuEvent(self, arg__1: PySide2.QtGui.QContextMenuEvent) contextMenuEvent(self, arg__1: PySide2.QtGui.QContextMenuEvent) [extrait de contextMenuEvent.__doc__]
copy(self) copy(self) [extrait de copy.__doc__]
createStandardContextMenu(self) -> PySide2.QtWidgets.QMenu createStandardContextMenu(self) -> PySide2.QtWidgets.QMenu [extrait de createStandardContextMenu.__doc__]
cursorBackward(self, mark: bool, steps: int = 1) cursorBackward(self, mark: bool, steps: int = 1) [extrait de cursorBackward.__doc__]
cursorForward(self, mark: bool, steps: int = 1) cursorForward(self, mark: bool, steps: int = 1) [extrait de cursorForward.__doc__]
cursorMoveStyle(self) -> PySide2.QtCore.Qt.CursorMoveStyle cursorMoveStyle(self) -> PySide2.QtCore.Qt.CursorMoveStyle [extrait de cursorMoveStyle.__doc__]
cursorPosition(self) -> int cursorPosition(self) -> int [extrait de cursorPosition.__doc__]
cursorPositionAt(self, pos: PySide2.QtCore.QPoint) -> int cursorPositionAt(self, pos: PySide2.QtCore.QPoint) -> int [extrait de cursorPositionAt.__doc__]
cursorPositionChanged
cursorRect(self) -> PySide2.QtCore.QRect cursorRect(self) -> PySide2.QtCore.QRect [extrait de cursorRect.__doc__]
cursorWordBackward(self, mark: bool) cursorWordBackward(self, mark: bool) [extrait de cursorWordBackward.__doc__]
cursorWordForward(self, mark: bool) cursorWordForward(self, mark: bool) [extrait de cursorWordForward.__doc__]
customContextMenuRequested
cut(self) cut(self) [extrait de cut.__doc__]
del_(self) del_(self) [extrait de del_.__doc__]
deselect(self) deselect(self) [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: PySide2.QtGui.QDragEnterEvent) dragEnterEvent(self, arg__1: PySide2.QtGui.QDragEnterEvent) [extrait de dragEnterEvent.__doc__]
dragLeaveEvent(self, e: PySide2.QtGui.QDragLeaveEvent) dragLeaveEvent(self, e: PySide2.QtGui.QDragLeaveEvent) [extrait de dragLeaveEvent.__doc__]
dragMoveEvent(self, e: PySide2.QtGui.QDragMoveEvent) dragMoveEvent(self, e: PySide2.QtGui.QDragMoveEvent) [extrait de dragMoveEvent.__doc__]
dropEvent(self, arg__1: PySide2.QtGui.QDropEvent) dropEvent(self, arg__1: PySide2.QtGui.QDropEvent) [extrait de dropEvent.__doc__]
EchoMode
echoMode(self) -> PySide2.QtWidgets.QLineEdit.EchoMode echoMode(self) -> PySide2.QtWidgets.QLineEdit.EchoMode [extrait de echoMode.__doc__]
editingFinished
end(self, mark: bool) end(self, mark: bool) [extrait de end.__doc__]
event(self, arg__1: PySide2.QtCore.QEvent) -> bool event(self, arg__1: PySide2.QtCore.QEvent) -> bool [extrait de event.__doc__]
focusInEvent(self, arg__1: PySide2.QtGui.QFocusEvent) focusInEvent(self, arg__1: PySide2.QtGui.QFocusEvent) [extrait de focusInEvent.__doc__]
focusOutEvent(self, arg__1: PySide2.QtGui.QFocusEvent) focusOutEvent(self, arg__1: PySide2.QtGui.QFocusEvent) [extrait de focusOutEvent.__doc__]
getTextMargins(self) -> typing.Tuple[int, int, int, int] getTextMargins(self) -> typing.Tuple[int, int, int, int] [extrait de getTextMargins.__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) home(self, mark: bool) [extrait de home.__doc__]
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionFrame) initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionFrame) [extrait de initStyleOption.__doc__]
inputMask(self) -> str inputMask(self) -> str [extrait de inputMask.__doc__]
inputMethodEvent(self, arg__1: PySide2.QtGui.QInputMethodEvent) inputMethodEvent(self, arg__1: PySide2.QtGui.QInputMethodEvent) [extrait de inputMethodEvent.__doc__]
inputMethodQuery inputMethodQuery(self, arg__1: PySide2.QtCore.Qt.InputMethodQuery) -> typing.Any [extrait de inputMethodQuery.__doc__]
inputRejected
insert(self, arg__1: str) insert(self, arg__1: str) [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: PySide2.QtGui.QKeyEvent) keyPressEvent(self, arg__1: PySide2.QtGui.QKeyEvent) [extrait de keyPressEvent.__doc__]
maxLength(self) -> int maxLength(self) -> int [extrait de maxLength.__doc__]
minimumSizeHint(self) -> PySide2.QtCore.QSize minimumSizeHint(self) -> PySide2.QtCore.QSize [extrait de minimumSizeHint.__doc__]
mouseDoubleClickEvent(self, arg__1: PySide2.QtGui.QMouseEvent) mouseDoubleClickEvent(self, arg__1: PySide2.QtGui.QMouseEvent) [extrait de mouseDoubleClickEvent.__doc__]
mouseMoveEvent(self, arg__1: PySide2.QtGui.QMouseEvent) mouseMoveEvent(self, arg__1: PySide2.QtGui.QMouseEvent) [extrait de mouseMoveEvent.__doc__]
mousePressEvent(self, arg__1: PySide2.QtGui.QMouseEvent) mousePressEvent(self, arg__1: PySide2.QtGui.QMouseEvent) [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, arg__1: PySide2.QtGui.QMouseEvent) mouseReleaseEvent(self, arg__1: PySide2.QtGui.QMouseEvent) [extrait de mouseReleaseEvent.__doc__]
objectNameChanged
paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) [extrait de paintEvent.__doc__]
paste(self) paste(self) [extrait de paste.__doc__]
placeholderText(self) -> str placeholderText(self) -> str [extrait de placeholderText.__doc__]
redo(self) redo(self) [extrait de redo.__doc__]
returnPressed
selectAll(self) selectAll(self) [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: PySide2.QtCore.Qt.Alignment) setAlignment(self, flag: PySide2.QtCore.Qt.Alignment) [extrait de setAlignment.__doc__]
setClearButtonEnabled(self, enable: bool) setClearButtonEnabled(self, enable: bool) [extrait de setClearButtonEnabled.__doc__]
setCompleter(self, completer: PySide2.QtWidgets.QCompleter) setCompleter(self, completer: PySide2.QtWidgets.QCompleter) [extrait de setCompleter.__doc__]
setCursorMoveStyle(self, style: PySide2.QtCore.Qt.CursorMoveStyle) setCursorMoveStyle(self, style: PySide2.QtCore.Qt.CursorMoveStyle) [extrait de setCursorMoveStyle.__doc__]
setCursorPosition(self, arg__1: int) setCursorPosition(self, arg__1: int) [extrait de setCursorPosition.__doc__]
setDragEnabled(self, b: bool) setDragEnabled(self, b: bool) [extrait de setDragEnabled.__doc__]
setEchoMode(self, arg__1: PySide2.QtWidgets.QLineEdit.EchoMode) setEchoMode(self, arg__1: PySide2.QtWidgets.QLineEdit.EchoMode) [extrait de setEchoMode.__doc__]
setFrame(self, arg__1: bool) setFrame(self, arg__1: bool) [extrait de setFrame.__doc__]
setInputMask(self, inputMask: str) setInputMask(self, inputMask: str) [extrait de setInputMask.__doc__]
setMaxLength(self, arg__1: int) setMaxLength(self, arg__1: int) [extrait de setMaxLength.__doc__]
setModified(self, arg__1: bool) setModified(self, arg__1: bool) [extrait de setModified.__doc__]
setPlaceholderText(self, arg__1: str) setPlaceholderText(self, arg__1: str) [extrait de setPlaceholderText.__doc__]
setReadOnly(self, arg__1: bool) setReadOnly(self, arg__1: bool) [extrait de setReadOnly.__doc__]
setSelection(self, arg__1: int, arg__2: int) setSelection(self, arg__1: int, arg__2: int) [extrait de setSelection.__doc__]
setText(self, arg__1: str) setText(self, arg__1: str) [extrait de setText.__doc__]
setTextMargins setTextMargins(self, left: int, top: int, right: int, bottom: int) [extrait de setTextMargins.__doc__]
setValidator(self, arg__1: PySide2.QtGui.QValidator) setValidator(self, arg__1: PySide2.QtGui.QValidator) [extrait de setValidator.__doc__]
sizeHint(self) -> PySide2.QtCore.QSize sizeHint(self) -> PySide2.QtCore.QSize [extrait de sizeHint.__doc__]
text(self) -> str text(self) -> str [extrait de text.__doc__]
textChanged
textEdited
textMargins(self) -> PySide2.QtCore.QMargins textMargins(self) -> PySide2.QtCore.QMargins [extrait de textMargins.__doc__]
undo(self) undo(self) [extrait de undo.__doc__]
validator(self) -> PySide2.QtGui.QValidator validator(self) -> PySide2.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, getContentsMargins, grab, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, hasFocus, hasHeightForWidth, hasMouseTracking, hasTabletTracking, height, heightForWidth, hide, hideEvent, initPainter, inputMethodHints, insertAction, insertActions, internalWinId, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, keyReleaseEvent, 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, 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, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

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

__init_subclass__, __subclasshook__

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

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