Results 1 to 2 of 2

Thread: QGraphicsItem's hover event problem

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QGraphicsItem's hover event problem

    Hi,

    I have several different QGraphicsItems in the scene. I want to receive some hover event for a particular type of object, so I did setAcceptHoverEvents( true ) on it, while all other types have setAcceptHoverEvents( false ).

    The problem is when I move mouse around the scene, all types of items call QGraphicsItem::collidesWithPath, which in turn call QGraphicsItem::shape().

    How do I stop those calls for items that do not accept hover event?

    Thanks!

  2. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QGraphicsItem's hover event problem

    Anyone please?

Similar Threads

  1. QGraphicsItem hover event
    By xgoan in forum Qt Programming
    Replies: 6
    Last Post: 4th January 2016, 15:08
  2. hover event on qframe
    By mattyev87 in forum Newbie
    Replies: 1
    Last Post: 27th January 2011, 13:27
  3. QGraphicsItem right click event problem
    By liqxpil in forum Qt Programming
    Replies: 3
    Last Post: 13th December 2010, 12:54
  4. QSystemTrayIcon capture mouse hover event
    By alan in forum Qt Programming
    Replies: 2
    Last Post: 1st August 2009, 19:42
  5. QGraphicsItem hover events
    By stefan in forum Qt Programming
    Replies: 1
    Last Post: 18th August 2008, 11:01

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.