QInputMethodQueryEvent 類

The 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

額外繼承成員

詳細描述

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