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) |
信号
void | contentsChanged() |
属性文档
contents : QStringList
字典内容。
该属性包含字典的内容。通常,内容由单词或短语组成。请注意,字典是语言中立的,也就是说,如果字典中包含语言相关的数据,应用程序有责任对字典进行本地化。
内容可随时设置,但最好在输入法未激活时设置。
访问功能:
QStringList | contents() const |
void | setContents(const QStringList &contents) |
void | resetContents() |
通知信号:
void | contentsChanged() |
[read-only]
name : const QString
字典名称。
该属性包含创建字典时指定的字典名称。在引用特定字典时(例如在输入上下文中激活字典时),必须使用该名称。
注意: 以后不能更改字典名称。
访问功能:
QString | name() const |
© 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.