用QT Creator写程序时候,老是会碰到这样一个问题,当弹出一个函数,你单击Enter键,然后准备输入参数的时候,键盘就没有动静了,无法输入代码,搞的人很郁闷。我在网上搜了一下,好多人遇到过这个问题,但解决的办法却很少,找到一篇说到点子上,但不详细。我又用英文搜了一下,找到答案了!不过代价是不用中文输入法,原因是scim与QT Creator造成了冲突,导致键盘“假死”,无法输入!
我的做法是关闭scim,中文输入法现在对我来说没多大用处,所以关闭!方法:下面是一段英文,很简单,我也懒得翻译了,照着上面做就行!
//********************************************************************//
1. Set scim not to start automatically: run "im-switch -s none". Log
out and re-login.
2. Edit your ~/.scim/config configuration file, change the
/FrontEnd/X11/Dynamic option to true.
3. Reset scim to start automatically: run "im-switch -s scim-pinyin".
Log out and re-login.
Now there shouldn't be keyboard input lock-up anymore. However this
breaks deadkeys used in a lot of European keyboard layout. Although if
you only need to input Chinese and English, deadkeys should not be a
concern to you.
//*******************************************************************//
还有一种方法是卸载scim,用一种ibus输入法吧,好像是,现在忘了,可以搜一下,我没试过!呵呵