回复: 请教:窗口平时隐藏,通过快捷键呼出后,怎么置顶并激活?
#6 回 笑颜 的帖子 [cyberpunker 07-28 18:03]
笑颜:想要获取输入焦点,应该是获取输入焦点的控件setFource() (2017-07-28 08:56)
是要让窗口获得输入焦点
#7 回 stlcours 的帖子 [cyberpunker 08-01 23:33]
stlcours: this->showNormal();
this->raise();
this->activateWindow(); (2017-07-25 18:43)
窗口必须已经show 了,再用你的代码才可以。