From 005b2c65f9ab22420d2dfeddcacc2f2866094acf Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Wed, 30 Aug 2023 15:40:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20Qt=20VirtualKeyboard=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=B8=AD=E6=96=87.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Qt_VirtualKeyboard_支持中文.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Software/Development/Environment/Qt/Modules/VirtualKeyboard/Qt_VirtualKeyboard_支持中文.md diff --git a/Software/Development/Environment/Qt/Modules/VirtualKeyboard/Qt_VirtualKeyboard_支持中文.md b/Software/Development/Environment/Qt/Modules/VirtualKeyboard/Qt_VirtualKeyboard_支持中文.md new file mode 100644 index 0000000..3730b92 --- /dev/null +++ b/Software/Development/Environment/Qt/Modules/VirtualKeyboard/Qt_VirtualKeyboard_支持中文.md @@ -0,0 +1,22 @@ +# Qt VirtualKeyboard 支持中文 + +## 1. 概述 + +Qt VirtualKeyboard 不需要输入法做后端,其以插件插件形式提供功能,库安装在 /plugins/virtualkeyboard 目录下,中文拼音输入法 qtvirtualkeyboard_pinyin.dll/qtvirtualkeyboard_pinyin.so 提供功能。 + +Ubuntu 系统 apt 安装该组件不支持中文拼音输入,需要卸载 Qt VirtualKeyboard 组件后自行通过官方源码编译安装。在 的不同 official releases 中的 submodules 下可以找到不同版本的源码,例如,对应 Qt 5.15.10 的 VirtualKeyboard 下载连接如下: + +- [qtvirtualkeyboard-everywhere-opensource-src-5.15.10.zip](https://download.qt.io/official_releases/qt/5.15/5.15.10/submodules/qtvirtualkeyboard-everywhere-opensource-src-5.15.10.zip) +- [qtvirtualkeyboard-everywhere-opensource-src-5.15.10.tar.xz](https://download.qt.io/official_releases/qt/5.15/5.15.10/submodules/qtvirtualkeyboard-everywhere-opensource-src-5.15.10.tar.xz) + +## 2. 配置和编译 + +解压源码并 cd 到源码目录后: + +``` +qmake CONFIG+="lang-en_US lang-zh_CN" +make +sudo make install +``` + +即可。