Input some key will cause the Qt application program crash
-
I am Chinese.
I downloaded the Qt5.2 a few days ago.
I use the QLineEdit in the program. When I switch to the Chinese input methods, and input "?" (Question mark).
The program crash!
What's more I use the Qt Creator, it would crash too.Does it a bug? Or how could I correct it?
Thanks in advance!
-
可能系统对中文输入不支持导致的的。如果是Linux的话,在Qt Creator中搜“Qt for X11 Requirements”,看看这些开发包是否安装了没有。如果没有,则一一安装之。Windows的情况还是建议重新单独下载一个Qt Creator吧。
-
[quote author="lvshuchengyin" date="1387544873"]
I use the QLineEdit in the program. When I switch to the Chinese input methods, and input "?" (Question mark).
The program crash!
What's more I use the Qt Creator, it would crash too.
Also where exactly does it crash (stack trace)?Does it a bug? Or how could I correct it?
[/quote]
Hard to tell without a single line of code if it's Qt's or your fault.@jiangcaiyang
please write your answers in english since this is the international area of the forum and it may also help others. -
Hi, I created a new simple project. And only add a QLineEdit in it. When I switch to the Chinese input methods, and input “?” (Question mark). It crashed too.
[quote author="raven-worx" date="1387549432"][quote author="lvshuchengyin" date="1387544873"]
I use the QLineEdit in the program. When I switch to the Chinese input methods, and input "?" (Question mark).
The program crash!
What's more I use the Qt Creator, it would crash too.
Also where exactly does it crash (stack trace)?Does it a bug? Or how could I correct it?
[/quote]
Hard to tell without a single line of code if it's Qt's or your fault.@jiangcaiyang
please write your answers in english since this is the international area of the forum and it may also help others. [/quote] -
[quote author="lvshuchengyin" date="1387553564"]Hi, I created a new simple project. And only add a QLineEdit in it. When I switch to the Chinese input methods, and input “?” (Question mark). It crashed too.
[/quote]Well... this is exactly the same information from your initial post...
-
我用qt4.8.5是没问题的,就5.2有问题
[quote author="jiangcaiyang" date="1387548552"]可能系统对中文输入不支持导致的的。如果是Linux的话,在Qt Creator中搜“Qt for X11 Requirements”,看看这些开发包是否安装了没有。如果没有,则一一安装之。Windows的情况还是建议重新单独下载一个Qt Creator吧。[/quote]
-
[quote author="lvshuchengyin" date="1387553762"]我用qt4.8.5是没问题的,就5.2有问题
[quote author="jiangcaiyang" date="1387548552"]可能系统对中文输入不支持导致的的。如果是Linux的话,在Qt Creator中搜“Qt for X11 Requirements”,看看这些开发包是否安装了没有。如果没有,则一一安装之。Windows的情况还是建议重新单独下载一个Qt Creator吧。[/quote]
[/quote]
Please stay with English in not language specific forums.
BTW There is also a "Chinese forum.":http://qt-project.org/forums/viewforum/39/ -
Sorry , I said I use Qt4.8.5 is fine. But Qt5.2 has that question.
-
Qt and its accompanying Qt Creator has the same problem doing with eastern Asian characters on Unix like systems. Unlike Mac OS X, free Linux distributions have limited guarantee to those functionalities above. If possible, you can also turn to their communities for help. I know that Ubuntu has a Chinese forum. Here is the link: "Click me":http://forum.ubuntu.org.cn/
In addition, I strongly suggest installing all the packages mentioned above( see "Qt for X11 Requirements" pages for those packages ) before installing Qt. As a newly released version, Qt 5.2 has not been stablized, so if you really want to use Qt for pratical use, you can turn to Qt5.1.1 or other Qt lower version.
-
[quote author="jiangcaiyang" date="1387591469"]Qt and its accompanying Qt Creator has the same problem doing with eastern Asian characters on Unix like systems. Unlike Mac OS X, free Linux distributions have limited guarantee to those functionalities above. If possible, you can also turn to their communities for help. I know that Ubuntu has a Chinese forum. Here is the link: "Click me":http://forum.ubuntu.org.cn/
In addition, I strongly suggest installing all the packages mentioned above( see "Qt for X11 Requirements" pages for those packages ) before installing Qt. As a newly released version, Qt 5.2 has not been stablized, so if you really want to use Qt for pratical use, you can turn to Qt5.1.1 or other Qt lower version.[/quote]
Thanks for your advise! But I use Qt in Windows OS.
And I will try to use Qt5.1.