PythonQt.QtGui.QLineEdit · declarations 003
Back to PythonQt.QtGui.QLineEdit
selectionStart
selectionStart() -> int
X.selectionStart() -> int
Supplemental documentation: Qt 5 reference:
int QLineEdit::selectionStart() const
Returns the index of the first selected character in the line edit or -1 if no text is selected.
See also selectedText(), selectionEnd(), and selectionLength().
Upstream PySide2 reference signatures (binding differences may apply):
selectionStart(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#selectionStart
setAlignment
setAlignment(arg0: flag) -> None
X.setAlignment(flag)
Upstream PySide2 reference signatures (binding differences may apply):
setAlignment(self, flag: PySide2.QtCore.Qt.Alignment) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setAlignment
setClearButtonEnabled
setClearButtonEnabled(enable: bool) -> None
X.setClearButtonEnabled(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setClearButtonEnabled(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setClearButtonEnabled
setCompleter
setCompleter(completer: Any) -> None
X.setCompleter(completer)
Supplemental documentation: Qt 5 reference:
void QLineEdit::setCompleter(QCompleter *c)
Sets this line edit to provide auto completions from the completer, c. The completion mode is set using QCompleter::setCompletionMode().
To use a QCompleter with a QValidator or QLineEdit::inputMask, you need to ensure that the model provided to QCompleter contains valid entries. You can use the QSortFilterProxyModel to ensure that the QCompleter's model contains only valid entries.
If c \=\= 0, setCompleter() removes the current completer, effectively disabling auto completion.
This function was introduced in Qt 4.2.
See also completer() and QCompleter.
Upstream PySide2 reference signatures (binding differences may apply):
setCompleter(self, completer: PySide2.QtWidgets.QCompleter) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setCompleter
setCursorMoveStyle
setCursorMoveStyle(style: Any) -> None
X.setCursorMoveStyle(style)
Upstream PySide2 reference signatures (binding differences may apply):
setCursorMoveStyle(self, style: PySide2.QtCore.Qt.CursorMoveStyle) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setCursorMoveStyle
setCursorPosition
setCursorPosition(arg__1: int) -> None
X.setCursorPosition(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setCursorPosition(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setCursorPosition
setDragEnabled
setDragEnabled(b: bool) -> None
X.setDragEnabled(b)
Upstream PySide2 reference signatures (binding differences may apply):
setDragEnabled(self, b: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setDragEnabled
setEchoMode
setEchoMode(arg__1: Any) -> None
X.setEchoMode(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setEchoMode(self, arg__1: PySide2.QtWidgets.QLineEdit.EchoMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setEchoMode
setFrame
setFrame(arg__1: bool) -> None
X.setFrame(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setFrame(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setFrame
setInputMask
setInputMask(inputMask: str) -> None
X.setInputMask(inputMask)
Upstream PySide2 reference signatures (binding differences may apply):
setInputMask(self, inputMask: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setInputMask
setMaxLength
setMaxLength(arg__1: int) -> None
X.setMaxLength(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setMaxLength(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setMaxLength
setModified
setModified(arg__1: bool) -> None
X.setModified(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setModified(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setModified
setPlaceholderText
setPlaceholderText(arg__1: str) -> None
X.setPlaceholderText(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setPlaceholderText(self, arg__1: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setPlaceholderText
setReadOnly
setReadOnly(arg__1: bool) -> None
X.setReadOnly(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setReadOnly(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setReadOnly
setSelection
setSelection(arg__1: int, arg__2: int) -> None
X.setSelection(arg__1, arg__2)
Supplemental documentation: Qt 5 reference:
void QLineEdit::setSelection(int start, int length)
Selects text from position start and for length characters. Negative lengths are allowed.
See also deselect(), selectAll(), and selectedText().
Upstream PySide2 reference signatures (binding differences may apply):
setSelection(self, arg__1: int, arg__2: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setSelection
setText
setText(a: Any) -> None
X.setText(a)
Upstream PySide2 reference signatures (binding differences may apply):
setText(self, arg__1: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setText
setTextMargins
setTextMargins(left: Any, top: Any, right: Any, bottom: Any) -> None
X.setTextMargins(left, top, right, bottom)
Supplemental documentation: Qt 5 reference:
void QLineEdit::setTextMargins(int left, int top, int right, int bottom)
Sets the margins around the text inside the frame to have the sizes left, top, right, and bottom.
See also textMargins().
This function was introduced in Qt 4.5.
See also textMargins().
void QLineEdit::setTextMargins(const QMargins \&margins)
Sets the margins around the text inside the frame.
See also textMargins().
This function was introduced in Qt 4.6.
Upstream PySide2 reference signatures (binding differences may apply):
setTextMargins(self, left: int, top: int, right: int, bottom: int) -> None
setTextMargins(self, margins: PySide2.QtCore.QMargins) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setTextMargins
setValidator
setValidator(arg__1: Any) -> None
X.setValidator(arg__1)
Supplemental documentation: Qt 5 reference:
void QLineEdit::setValidator(const QValidator *v)
Sets the validator for values of line edit to v.
The line edit's returnPressed() and editingFinished() signals will only be emitted if v validates the line edit's content as Acceptable. The user may change the content to any Intermediate value during editing, but will be prevented from editing the text to a value that v validates as Invalid.
This allows you to constrain the text that shall finally be entered when editing is done, while leaving users with enough freedom to edit the text from one valid state to another.
If v \=\= 0, setValidator() removes the current input validator. The initial setting is to have no input validator (i.e. any input is accepted up to maxLength()).
See also validator(), hasAcceptableInput(), QIntValidator, QDoubleValidator, and QRegExpValidator.
Upstream PySide2 reference signatures (binding differences may apply):
setValidator(self, arg__1: PySide2.QtGui.QValidator) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#setValidator
sizeHint
instance-attribute
sizeHint: QSize
Qt 5 reference:
[override virtual] QSize QLineEdit::sizeHint() const
Reimplements an access function for property: QWidget::sizeHint.
Returns a recommended size for the widget.
The width returned, in pixels, is usually enough for about 15 to 20 characters.
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#sizeHint
text
instance-attribute
text: str
Qt 5 reference:
text : QString
This property holds the line edit's text.
Setting this property clears the selection, clears the undo/redo history, moves the cursor to the end of the line and resets the modified property to false. The text is not validated when inserted with setText().
The text is truncated to maxLength() length.
By default, this property contains an empty string.
Access functions:
| QString | text() const |
|---|---|
| void | setText(const QString \&) |
Notifier signal:
| void | textChanged(const QString \&text) |
|---|---|
See also insert() and clear().
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#text
textChanged
textChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QLineEdit.textChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QLineEdit::textChanged(const QString \&text)
This signal is emitted whenever the text changes. The text argument is the new text.
Unlike textEdited(), this signal is also emitted when the text is changed programmatically, for example, by calling setText().
Note: Notifier signal for property text.
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#textChanged
textEdited
textEdited(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QLineEdit.textEdited; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QLineEdit::textEdited(const QString \&text)
This signal is emitted whenever the text is edited. The text argument is the new text.
Unlike textChanged(), this signal is not emitted when the text is changed programmatically, for example, by calling setText().
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#textEdited
textMargins
textMargins() -> Any
X.textMargins() -> PythonQt.QtGui.QMargins
Supplemental documentation: Qt 5 reference:
QMargins QLineEdit::textMargins() const
Returns the widget's text margins.
This function was introduced in Qt 4.6.
See also setTextMargins().
Upstream PySide2 reference signatures (binding differences may apply):
textMargins(self) -> PySide2.QtCore.QMargins
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#textMargins
undo
undo() -> None
X.undo()
Supplemental documentation: Qt 5 reference:
[slot] void QLineEdit::undo()
Undoes the last operation if undo is available. Deselects any current selection, and updates the selection start to the current cursor position.
Upstream PySide2 reference signatures (binding differences may apply):
undo(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#undo
undoAvailable
instance-attribute
undoAvailable: Any
Qt 5 reference:
undoAvailable : const bool
This property holds whether undo is available.
Undo becomes available once the user has modified the text in the line edit.
By default, this property is false.
Access functions:
| bool | isUndoAvailable() const |
|---|---|
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#undoAvailable
validator
validator() -> Any
X.validator() -> PythonQt.QtGui.QValidator
Supplemental documentation: Qt 5 reference:
const QValidator *QLineEdit::validator() const
Returns a pointer to the current input validator, or nullptr if no validator has been
set.
See also setValidator().
Upstream PySide2 reference signatures (binding differences may apply):
validator(self) -> PySide2.QtGui.QValidator
Source: https://doc.qt.io/archives/qt-5.15/qlineedit.html#validator
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QLineEdit.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QLineEdit.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QLineEdit.windowTitleChanged; argument details are not documented.