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 ().
構造查詢事件,為給定特性通過 queries .
返迴通過事件查詢特性。
設置特性 query to value .
另請參閱 value ().
返迴值為特性 query .
另請參閱 setValue ().