Use Raspberry Pi is connected to the PC via vnc, you will find that when you run PyQt keyboard input when garbled, press the corresponding abcde appears asdfg. It is due to improper version of vnc.
Solution:
1. Delete the original vnc
sudo apt-get remove tightvncserver
2. Download vncserver, download URL
https://www.realvnc.com/en/connect/download/vnc/raspberrypi/
3 Installation
I am a good first download the installation package (deb files), manual installation
sudo dpkg -i VNC-Server-6.6.0-Linux-ARM.deb