PySide6.QtGui.QInputMethodQueryEvent¶
- class QInputMethodQueryEvent¶
The
QInputMethodQueryEvent
class provides an event sent by the input context to input objects. More…Synopsis¶
Methods¶
def
__init__()
def
queries()
def
setValue()
def
value()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
It is used by the input method to query a set of properties of the object to be able to support complex input method operations as support for surrounding text and reconversions.
queries()
specifies which properties are queried.The object should call
setValue()
on the event to fill in the requested data before calling accept().- __init__(queries)¶
- Parameters:
queries – Combination of
InputMethodQuery
Constructs a query event for properties given by
queries
.- __init__(queries)
- Parameters:
queries –
QInputMethodQueryEvent
Constructs a query event for properties given by
queries
.- queries()¶
- Return type:
Combination of
InputMethodQuery
Returns the properties queried by the event.
- setValue(query, value)¶
- Parameters:
query –
InputMethodQuery
value – object
Sets property
query
tovalue
.See also
- value(query)¶
- Parameters:
query –
InputMethodQuery
- Return type:
object
Returns value of the property
query
.See also