Exemple #1
0
 def wheelEvent(self, event):
     event.ignore()
     numDegrees = event.angleDelta().y() / 8
     if numDegrees > 0:
         self.setTransform(QTransform.fromScale(1.15, 1.15), True)
     #self.scale(1.15, 1.15)
     else:
         self.setTransform(QTransform.fromScale(0.85, 0.85), True)
Exemple #2
0
 def _mirror(self, item):
     item.setTransform(QTransform.fromScale(-1, 1), True)
     item.setTransform(QTransform.fromTranslate(-self.w, 0), True)