QInputMethodQueryEvent 类

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

头: #include <QInputMethodQueryEvent>
qmake: QT += gui
Since: 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

额外继承成员

详细描述

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

输入法使用它查询对象的一组特性,以便能够支持复杂输入法操作,作为对环绕文本和重新转换的支持。

queries () 指定查询哪些特性。

对象应该调用 setValue () 在事件以填充请求数据先于调用 accept ().

成员函数文档编制

QInputMethodQueryEvent:: QInputMethodQueryEvent ( Qt::InputMethodQueries queries )

构造查询事件,为给定特性通过 queries .

Qt::InputMethodQueries QInputMethodQueryEvent:: queries () const

返回通过事件查询特性。

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

设置特性 query to value .

另请参阅 value ().

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

返回值为特性 query .

另请参阅 setValue ().