QTE输入法在模式对话框中如何使用?
在QTE上写了一个软键盘的输入法,应用程序中QDialog窗体以exec方式打开后,焦点无法切换到输入法输入法 windowFlags fl = Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::Tool const QApplication::Type type = a.type();if (QApplication::GuiServer == type) { IMFrame::installInputMethod();}Base base;base.show(); // 以非模态方式打开窗口,输入法可以正常使用//base.exec(); // 以模态方式打开窗口,输入法无法使用,控件无法得到焦点//int ret = a.exec();if (QApplication::GuiServer == type) { IMFrame::releaseInputMethod();}return ret;