[PyQt] graphicsItem hoverEvent and mousePressing

Christopher M. Nahler christopher.nahler at papermodels.at
Tue Aug 3 07:25:47 BST 2010


Hi!

In the hoverMoveEvent() function can I check the hoverEvent.modifiers() 
for mouse presses? I tried with

if hover.Event.modifiers() & Qt.LeftButton:
  ...

but this does not seem to work.

The description for modifiers() only talks about keyboard modifiers. Can 
I not check if a mouse was pressed in hoverEvents?

Or do I need to set variables according to hovering and then handle them 
in mousePressEvent()?

Thanks in advance
Chris


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100803/7e16664c/attachment.html>


More information about the PyQt mailing list