このページでは

Qt Virtual Keyboard C++ Classes

仮想キーボード用の入力方式を実装するためのクラスを提供します。詳細...

名前空間

QtVirtualKeyboard

仮想キーボードクラスで使用される列挙型が含まれています

クラス

QVirtualKeyboardAbstractInputMethod

入力メソッドの基底クラス

QVirtualKeyboardDictionary

仮想キーボードの入力メソッド用のアプリケーション定義辞書

QVirtualKeyboardDictionaryManager

アプリケーション定義の辞書に対する辞書管理

QVirtualKeyboardInputContext

入力コンテキストへのアクセスを提供します

QVirtualKeyboardInputEngine

InputEngine クラスは、C++ および QML との統合をサポートする入力エンジンを提供します

QVirtualKeyboardObserver

キーボードイベント通知のハブとして機能します

QVirtualKeyboardSelectionListModel

選択リスト用のリストモデル

QVirtualKeyboardTrace

Traceは、タッチ入力データ用のデータモデルです

詳細な説明

モジュールのクラスの定義をインクルードするには、次のディレクティブを使用します:

#include <QtVirtualKeyboard>

モジュールの使用

Qtモジュールを使用するには、直接または他の依存関係を通じて、モジュールライブラリにリンクする必要があります。CMakeやqmakeなど、いくつかのビルドツールではこれに対する専用のサポートが用意されています。

CMake を使用したビルド

find_package() コマンドを使用して、Qt6 パッケージ内の必要なモジュールコンポーネントを指定します:

find_package(Qt6 REQUIRED COMPONENTS VirtualKeyboard)
target_link_libraries(mytarget PRIVATE Qt6::VirtualKeyboard)

詳細については、「CMake の入門」を参照してください。

qmake を使用したビルド

このモジュールに対してリンクを行うには、qmakeの.pro ファイルに次の行を追加してください:

QT += virtualkeyboard

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