Results 1 to 4 of 4

Thread: QGraphicsSceneMouseEvents

  1. #1
    Join Date
    Jan 2009
    Posts
    12
    Qt products
    Qt4

    Default QGraphicsSceneMouseEvents

    Hi,
    I have a problem with the QGraphicsSceneMouseEvents of QGraphicsItem and QGraphicsScene. I have implemented mousePressEvent and mouseMoveEvent for both scene class and Item class. But only my scene class mousePressEvent and mouseMoveEvent are working.
    how can I make both scene class and Item class events to work.

  2. #2
    Join Date
    Jan 2009
    Posts
    12
    Qt products
    Qt4

    Default Re: QGraphicsSceneMouseEvents

    Hi friends,
    Plz help me i m not getting it QGraphicsSceneMouseEvents are not working

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QGraphicsSceneMouseEvents

    How looks your code? But probably you have forgotten to redirect the event!

  4. #4
    Join Date
    Dec 2008
    Posts
    52
    Thanks
    3
    Qt products
    Qt4

    Default Re: QGraphicsSceneMouseEvents

    calling base class virtual function may do it.

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.