このページでは

QVirtualKeyboardDictionary Class

仮想キーボード入力方式用の、アプリケーション定義の辞書。詳細...

ヘッダー: #include <QVirtualKeyboardDictionary>
CMake: find_package(Qt6 REQUIRED COMPONENTS VirtualKeyboard)
target_link_libraries(mytarget PRIVATE Qt6::VirtualKeyboard)
qmake: QT += virtualkeyboard
継承元: QObject

プロパティ

パブリック関数

QStringList contents() const
QString name() const
void resetContents()
void setContents(const QStringList &contents)

シグナル

詳細な説明

このクラスは、単語やフレーズで構成される名前付き辞書を定義します。この辞書は、必要なコンテキストで有効化することができ、その使用方法は仮想キーボードの現在の入力方法によって異なります。

プロパティのドキュメント

contents : QStringList

辞書の内容。

このプロパティには、辞書の内容が格納されます。通常、その内容は単語やフレーズで構成されます。なお、この辞書は言語に依存しないため、言語依存のデータが含まれている場合は、辞書のローカライズはアプリケーション側の責任となります。

内容はいつでも設定できますが、入力メソッドがアクティブでないときに設定するのが適切です。

アクセス関数:

QStringList contents() const
void setContents(const QStringList &contents)
void resetContents()

通知シグナル:

void contentsChanged()

[read-only] name : const QString

辞書の名前。

このプロパティには、辞書が作成された際に指定された辞書名が格納されます。この名前は、特定の辞書を参照する際(たとえば、入力コンテキストで辞書を有効にする場合など)に必要です。

注:辞書名は後から 変更することはできません。

アクセス関数:

QString name() const

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