Widgets of qt can not be typed in Chinese,win10 and Qt5.x
-
Since the win10 kernel upgrade to 16299.248, all the widgets of Qt, can not be entered into Chinese or other languages expect English, many customers have encountered such a situation on their computer,We urgently need to be able to type in Chinese.Do anybody know how to solve the problem?
-
Hi @James-Haitching, and welcome to the Qt Dev Net!
I haven't seen this issue before, so please report it to https://bugreports.qt.io/
Here are a few things to check:
- Can you and your customers type Chinese into another application (such as Notepad) and then copy+paste the text into Qt widgets?
- What is your computer's locale?
- What version of Qt are you using? ("5.x" is very broad)
-
@JKSH Thank you for your help!
I've tried all the questions you asked- We can input Chinese in other applications including Qt call win10 openfiledialog, but including 'qtcreator' and 'dbbrowser', we can not type Chinese.WPS can be entered in Chinese, I remember it is written by qt4 .
2 copy+paste the text into Qt widgets is oK - I compile the most simple program, only a lineedit by qt5.7 commercial version and qt5.10 open source version, respectively, compiled by vs and mingw, but neither can type Chinese .
- I have a pc of win10 that kernel version is 16299.248, can input Chinese, but the kernel is higher than this version Can not enter Chinese. win7 is OK.
- I looked at the update log of the win10 kernel, the latest few versions, did change the input method, I suspect that the new win10 version and Qt interface is not compatible
- Our locale is China
- We can input Chinese in other applications including Qt call win10 openfiledialog, but including 'qtcreator' and 'dbbrowser', we can not type Chinese.WPS can be entered in Chinese, I remember it is written by qt4 .
-
Hi @James-Haitching, thank you for your detailed answers.
@James-Haitching said in Widgets of qt can not be typed in Chinese,win10 and Qt5.x:
I suspect that the new win10 version and Qt interface is not compatible
I think you are right. From what you have described, it sounds like there is an incompatibility in the newest version of Windows.
Someone else reported a similar issue with non-Qt apps. I wonder if it is related: https://answers.microsoft.com/en-us/windows/forum/windows_10-files/chinese-ime-not-working-in-windows-10-after-recent/ec046372-d253-41c3-bb2f-3accd7eb58f5
Anyway, please create a bug report at https://bugreports.qt.io/ so that the Qt engineers can monitor the problem. They might also find a way to fix the incompatibility. In the report, include all the details that you have already posted here, and include details about how you type Chinese characters (do you use an IME? Handwriting or hanyu pinyin?)
After you have created the bug report, please post a link here so that other people can follow the report.