1
我想:捕捉鼠标位置(不点击)
self.installEventFilter(self)
和:
desktop= QApplication.desktop()
desktop.installEventFilter(self)
有了:
def eventFilter(self, source, event):
if event.type() == QEvent.MouseMove:
print(event.pos())
return QMainWindow.eventFilter(self, source, event)
在QMainWindow的对象,但没有定论。
你有什么想法吗?
完美,谢谢 – Mauricio 2015-04-02 06:46:01