Results 1 to 20 of 22

Thread: How can both graphicsView and graphicsItem receive mousemoveEvent?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    Join Date
    Feb 2009
    Posts
    79
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    11
    Thanked 5 Times in 5 Posts

    Default Re: How can both graphicsView and graphicsItem receive mousemoveEvent?

    Please note the following:
    A MouseEvent propagates at first to the item under the mouse.

    If you subclass the item and call QGraphicsItem::mouseXXXEvent(envent), it will be propagated further. If you don't do that, the event is seen as processed and "dies".
    But if you call the parent handler, then you will meet this event also in the scene and the view again.

    Regards,
    Olli

  2. The following user says thank you to olidem for this useful post:

    christina123y (17th March 2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.