Ejemplo n.º 1
0
 def eventFilter(self, QObject, QEvent):
     if (QEvent.type() == QtCore.QEvent.MouseButtonRelease
             and QObject is self):
         pos = QEvent.pos()
         print('mouse button release: (%d, %d)' % (pos.x(), pos.y()))
     return Viewer.eventFilter(self, QObject, QEvent)