Qt有接收输入法字符串的事件么,keyPressEvent行不行?
keyPressEvent里有text(),把Widget设置为
this->setAttribute(Qt::WA_InputMethodEnabled, true);
this->setAttribute(Qt::WA_KeyCompression, true);
可是用输入法输入中文后,keyPressEvent进不去
发布时间: 2012-12-16 12:02:32 作者: rapoo
Qt有接收输入法字符串的事件么,keyPressEvent行不行?
keyPressEvent里有text(),把Widget设置为
this->setAttribute(Qt::WA_InputMethodEnabled, true);
this->setAttribute(Qt::WA_KeyCompression, true);
可是用输入法输入中文后,keyPressEvent进不去