采用PyQt4创建的应用程序窗口,处于最小化状态。当应用程序接收到某个消息时,如何使其自动弹出并获取焦点?
我的问题在这儿:http://stackoverflow.com/questions/12118939/how-to-make-a-pyqt4-window-jump-to-the-front
已经有人给出了答案,实现方法如下:
self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive) self.activateWindow() # setWindowState restores the minimized window and gives focus. But if the window just lost focus and not minimized, it won't give focus. # activateWindow gives focus but doesn't restore the minimized state. # Using both has the desired effect.
呵呵,谢谢
VaTG790i.最好的<a href=http://www.kyfei.com>网站推广软件</a>,
非常好
....................
;ui;普i;uighur;ui;ui;个
在unix网络编程中看到了关于TCP/IP的一些内容,我感觉还是写的不够。正在下载中,一定
下载地址呢