问题描述
我正在使用 pyqt5 开发桌面应用程序,我想使用带有手写识别功能的虚拟键盘.我看到Qt,QtVirtualKeyboard已经支持了.
这里是
我得到了在 QtCreator 上运行的 C++ Qt 示例代码.但是使用 python3.5 和 PyQt5 会给出这样的信息:
我应该如何从这里继续?PyQt5 是否带有 VirtualKeyboard 模块?如果没有,如何在 PyQt5 上安装?
对于 qt desinger,您只能在 .py 文件中添加这一行.
但是如果你想使用 QML 和 qtvirtualkeyboard;
pyqt5.8没有虚拟键盘插件,必须使用qt的路径.
例如,在 ubuntu 上安装 pyqt5、qt5.8 和 qtvirtualkeyboard 的基本步骤:
1.step 用qtvirtualkeyboard安装qt5.8
<块引用>wgethttp://下载.qt.io/official_releases/qt/5.8/5.8.0/qt-opensource-linux-x64-5.8.0.run
chmod +x qt-opensource-linux-x64-5.8.0.run
./qt-opensource-linux-x64-5.8.0.run
2.step
<块引用>apt-get 安装 python3 python3-pippip3 安装 pyqt5
3.step
在你的python代码上设置你的qt路径的环境变量.
I'm working on a desktop application using pyqt5, and I want to use a Virtual Keyboard with Handwriting Recognition. I saw that Qt, QtVirtualKeyboard already support it.
Here's a link!
I got the C++ Qt example code running on QtCreator. But using python3.5 and PyQt5 it gives this message:
How should I go on from here? Does PyQt5 comes with VirtualKeyboard module? if no How to install it on PyQt5?
for qt desinger you can add only this line on your .py file.
but If you want use QML with qtvirtualkeyboard;
There is no virtualkeyboard plugin in pyqt5.8, you must be use qt's paths.
For a example, basic steps for pyqt5, qt5.8 and qtvirtualkeyboard installiation on ubuntu:
1.step install qt5.8 with qtvirtualkeyboard
wget http://download.qt.io/official_releases/qt/5.8/5.8.0/qt-opensource-linux-x64-5.8.0.run
chmod +x qt-opensource-linux-x64-5.8.0.run
./qt-opensource-linux-x64-5.8.0.run
2.step
apt-get install python3 python3-pip pip3 install pyqt5
3.step
set environmental variables your qt paths on your python code.
这篇关于PyQt5/pyqt4 是否已经支持带有手写识别的 QtVirtualKeyboard?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!