このページでは

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 queries)
Qt::InputMethodQueries queries() const
void setValue(Qt::InputMethodQuery query, const QVariant &value)
QVariant value(Qt::InputMethodQuery query) const

プロテクトされた関数

QInputMethodQueryEvent(QInputMethodQueryEvent &&)
QInputMethodQueryEvent &operator=(QInputMethodQueryEvent &&)
QInputMethodQueryEvent &operator=(const QInputMethodQueryEvent &other)

詳細な説明

入力メソッドによって使用され、オブジェクトの一連のプロパティを照会することで、周囲のテキストへの対応や再変換といった複雑な入力メソッド操作をサポートできるようにします。

queries() は、どのプロパティを照会するかを指定します。

() は、どのプロパティを照会するかを指定します。オブジェクトは、accept() を呼び出す前に、イベントでsetValue() を呼び出し、要求されたデータを埋める必要があります。

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

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

queries で指定されたプロパティに対するクエリイベントを作成します。

[protected delete] QInputMethodQueryEvent::QInputMethodQueryEvent(QInputMethodQueryEvent &&)

QInputMethodQueryEvent のインスタンスをムーブコンストラクトで生成します。この関数は削除されています。

Qt::InputMethodQueries QInputMethodQueryEvent::queries() const

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

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

プロパティ `query ` を `value` に設定します。

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

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

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

setValue()も参照してください 。

[protected delete] QInputMethodQueryEvent &QInputMethodQueryEvent::operator=(QInputMethodQueryEvent &&)

other をこのQInputMethodQueryEvent インスタンスに割り当てます。この関数は削除されます。

[noexcept protected default] QInputMethodQueryEvent &QInputMethodQueryEvent::operator=(const QInputMethodQueryEvent &other)

other をこのQInputMethodQueryEvent インスタンスにコピーして割り当てます。

© 2026 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.