Results 1 to 2 of 2

Thread: QGraphicsView Handling Child Event

  1. #1
    Join Date
    Jul 2007
    Posts
    39
    Thanks
    10

    Default QGraphicsView Handling Child Event

    Hi

    I want to handle some of the child events at the parent item level. Since I have many childs for a particular parent, I want to know the child which initially received the event.

    I can get it from the event->pos() and checking which item lies in that spot.

    I was just wondering if this is the best approach or there is some other way?

    Thanks
    Arjun

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QGraphicsView Handling Child Event

    You might apply a sceneEventFilter on particular items and have that info given to you on a silver plater.

Similar Threads

  1. How to get focus event in child widget
    By YuriyRusinov in forum Qt Programming
    Replies: 4
    Last Post: 17th October 2006, 07:53

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.