QInputMethodQueryEvent Class

QInputMethodQueryEvent クラスは、入力コンテキストから入力オブジェクトに送信されるイベントを提供します。詳細...

ヘッダ #include <QInputMethodQueryEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
を継承する: QEvent

公共機能

QInputMethodQueryEvent(Qt::InputMethodQueriesクエリ)
Qt::InputMethodQueries queries() const
void setValue(Qt::InputMethodQueryquery, const QVariant&value)
QVariant value(Qt::InputMethodQueryquery) const

詳細説明

これは、入力メソッドがオブジェクトのプロパティのセットを問い合わせるために使用され、囲みテキストや再変換のサポートとして複雑な入力メソッド操作をサポートできるようにします。

queries() は、どのプロパティを問い合わせるかを指定する。

オブジェクトは、accept ()を呼び出す前に、イベント上でsetValue ()を呼び出して、要求されたデータを入力する必要がある。

メンバー関数ドキュメント

[explicit] QInputMethodQueryEvent::QInputMethodQueryEvent(Qt::InputMethodQueries queries)

queries で与えられたプロパティに対するクエリイベントを構築します。

Qt::InputMethodQueries QInputMethodQueryEvent::queries() const

イベントによって照会されたプロパティを返します。

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

プロパティqueryvalue に設定する。

value()も参照してください

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

query プロパティの値を返す。

setValue()も参照

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.