Qt有接收输入法字符串的事件么,keyPressEvent行不行?该如何处理

Qt有接收输入法字符串的事件么,keyPressEvent行不行?keyPressEvent里有text(),把Widget设置为this-setAtt

Qt有接收输入法字符串的事件么,keyPressEvent行不行?
keyPressEvent里有text(),把Widget设置为
  this->setAttribute(Qt::WA_InputMethodEnabled, true);
  this->setAttribute(Qt::WA_KeyCompression, true);
可是用输入法输入中文后,keyPressEvent进不去