Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QInputMethodQueryEvent class provides an event sent by the input context to input objects. More...
#include <qevent.h>
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 2355 of file qevent.cpp.
|
inline |
void QInputMethodQueryEvent::setValue | ( | Qt::InputMethodQuery | query, |
const QVariant & | value ) |
Sets property query to value.
Definition at line 2366 of file qevent.cpp.
QVariant QInputMethodQueryEvent::value | ( | Qt::InputMethodQuery | query | ) | const |
Returns value of the property query.
Definition at line 2381 of file qevent.cpp.