![]() |
Qt 6.x
The Qt SDK
|
The QInputMethodQueryEvent class provides an event sent by the input context to input objects. More...
#include <qevent.h>
Inheritance diagram for QInputMethodQueryEvent:
Collaboration diagram for QInputMethodQueryEvent:Public Member Functions | |
| QInputMethodQueryEvent (Qt::InputMethodQueries queries) | |
| Constructs a query event for properties given by queries. | |
| Qt::InputMethodQueries | queries () const |
| Returns the properties queried by the event. | |
| void | setValue (Qt::InputMethodQuery query, const QVariant &value) |
| Sets property query to value. | |
| QVariant | value (Qt::InputMethodQuery query) const |
| Returns value of the property query. | |
Public Member Functions inherited from QEvent | |
| QEvent (Type type) | |
| Constructs an event object of type type. | |
| virtual | ~QEvent () |
| Destroys the event. | |
| Type | type () const |
| Returns the event type. | |
| bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false. | |
| virtual void | setAccepted (bool accepted) |
| bool | isAccepted () const |
| void | accept () |
| Sets the accept flag of the event object, the equivalent of calling setAccepted(true). | |
| void | ignore () |
| Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). | |
| bool | isInputEvent () const noexcept |
| bool | isPointerEvent () const noexcept |
| bool | isSinglePointEvent () const noexcept |
| virtual QEvent * | clone () const |
| Creates and returns an identical copy of this event. | |
The QInputMethodQueryEvent class provides an event sent by the input context to input objects.
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().
|
explicit |
Constructs a query event for properties given by queries.
Definition at line 2352 of file qevent.cpp.
|
inline |
Returns the properties queried by the event.
Definition at line 683 of file qevent.h.
Referenced by QQuickItem::event(), QWidget::event(), and QIOSMenu::eventFilter().
Here is the caller graph for this function:| void QInputMethodQueryEvent::setValue | ( | Qt::InputMethodQuery | query, |
| const QVariant & | value | ||
| ) |
Sets property query to value.
Definition at line 2363 of file qevent.cpp.
References i.
Referenced by QIOSMenu::eventFilter().
Here is the caller graph for this function:| QVariant QInputMethodQueryEvent::value | ( | Qt::InputMethodQuery | query | ) | const |
Returns value of the property query.
Definition at line 2378 of file qevent.cpp.
References QList< T >::at(), i, and QList< T >::size().
Referenced by QIOSMenu::eventFilter(), QInputMethod::queryFocusObject(), and queryInputMethod().
Here is the call graph for this function:
Here is the caller graph for this function: