QInputMethodQueryEvent Class

The QInputMethodQueryEvent class provides an event sent by the input context to input objects. 更多...

头文件: #include <QInputMethodQueryEvent>
qmake: QT += gui
开始支持版本: Qt 5.0
基类: QEvent

公有函数

QInputMethodQueryEvent(Qt::InputMethodQueries queries)
Qt::InputMethodQueries queries() const
void setValue(Qt::InputMethodQuery query, const QVariant &value)
QVariant value(Qt::InputMethodQuery query) const
  • 6 个公有函数继承自 QEvent

其他继承的成员

  • 1 个属性继承自 QEvent
  • 1 个静态公有成员继承自 QEvent
  • 2 个受保护的变量继承自 QEvent

详细描述

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().

成员函数

QInputMethodQueryEvent::QInputMethodQueryEvent(Qt::InputMethodQueries queries)

Constructs a query event for properties given by queries.

Qt::InputMethodQueries QInputMethodQueryEvent::queries() const

Returns the properties queried by the event.

void QInputMethodQueryEvent::setValue(Qt::InputMethodQuery query, const QVariant &value)

Sets property query to value.

参见 value().

QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) const

Returns value of the property query.

参见 setValue().