Ejemplo n.º 1
0
 def event(self, event):
     if event.type() == QEvent.Wheel:
         # QAbstractButton automatically accepts all mouse events (in
         # event method) for disabled buttons. This can prevent scrolling
         # in a scroll area when a disabled button scrolls under the
         # mouse.
         event.ignore()
         return False
     else:
         return QToolButton.event(self, event)
 def event(self, event):
     if event.type() == QEvent.Wheel:
         # QAbstractButton automatically accepts all mouse events (in
         # event method) for disabled buttons. This can prevent scrolling
         # in a scroll area when a disabled button scrolls under the
         # mouse.
         event.ignore()
         return False
     else:
         return QToolButton.event(self, event)