PythonQt.QtGui.QInputMethodEvent · declarations 001
Back to PythonQt.QtGui.QInputMethodEvent
AttributeType
instance-attribute
AttributeType: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Cursor
instance-attribute
Cursor: Any
Language
instance-attribute
Language: Any
Ruby
instance-attribute
Ruby: Any
TextFormat
instance-attribute
TextFormat: Any
attributes
attributes() -> tuple
X.attributes() -> tuple
Supplemental documentation: Qt 5 reference:
const QList\<QInputMethodEvent::Attribute> \&QInputMethodEvent::attributes() const
Returns the list of attributes passed to the QInputMethodEvent constructor. The attributes control the visual appearance of the preedit string (the visual appearance of text outside the preedit string is controlled by the widget only).
See also preeditString() and Attribute.
Upstream PySide2 reference signatures (binding differences may apply):
attributes(self) -> typing.List[PySide2.QtGui.QInputMethodEvent.Attribute]
Source: https://doc.qt.io/archives/qt-5.15/qinputmethodevent.html#attributes
commitString
commitString() -> str
X.commitString() -> str
Supplemental documentation: Qt 5 reference:
const QString \&QInputMethodEvent::commitString() const
Returns the text that should get added to (or replace parts of) the text of the editor widget. It usually is a result of the input operations and has to be inserted to the widgets text directly before the preedit string.
See also setCommitString(), preeditString(), replacementStart(), and replacementLength().
Upstream PySide2 reference signatures (binding differences may apply):
commitString(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qinputmethodevent.html#commitString
preeditString
preeditString() -> str
X.preeditString() -> str
Supplemental documentation: Qt 5 reference:
const QString \&QInputMethodEvent::preeditString() const
Returns the preedit text, i.e. the text before the user started editing it.
See also commitString() and attributes().
Upstream PySide2 reference signatures (binding differences may apply):
preeditString(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qinputmethodevent.html#preeditString
replacementLength
replacementLength() -> int
X.replacementLength() -> int
Supplemental documentation: Qt 5 reference:
int QInputMethodEvent::replacementLength() const
Returns the number of characters to be replaced in the preedit string.
See also replacementStart() and setCommitString().
Upstream PySide2 reference signatures (binding differences may apply):
replacementLength(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qinputmethodevent.html#replacementLength
replacementStart
replacementStart() -> int
X.replacementStart() -> int
Supplemental documentation: Qt 5 reference:
int QInputMethodEvent::replacementStart() const
Returns the position at which characters are to be replaced relative from the start of the preedit string.
See also replacementLength() and setCommitString().
Upstream PySide2 reference signatures (binding differences may apply):
replacementStart(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qinputmethodevent.html#replacementStart
setCommitString
setCommitString(commitString: str, replaceFrom: int, replaceLength: int) -> None
X.setCommitString(commitString, replaceFrom, replaceLength)
Supplemental documentation: Qt 5 reference:
void QInputMethodEvent::setCommitString(const QString \&commitString, int replaceFrom \= 0, int replaceLength \= 0)
Sets the commit string to commitString.
The commit string is the text that should get added to (or replace parts of) the text of the editor widget. It usually is a result of the input operations and has to be inserted to the widgets text directly before the preedit string.
If the commit string should replace parts of the of the text in the editor, replaceLength specifies the number of characters to be replaced. replaceFrom specifies the position at which characters are to be replaced relative from the start of the preedit string.
See also commitString(), replacementStart(), and replacementLength().
Upstream PySide2 reference signatures (binding differences may apply):
setCommitString(self, commitString: str, replaceFrom: int=..., replaceLength: int=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qinputmethodevent.html#setCommitString