Results 1 to 10 of 10

Thread: QGraphicsItem - clipping all child mouse events that are outside of parent

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Sep 2006
    Location
    Belgrade
    Posts
    28
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanked 1 Time in 1 Post

    Default Re: QGraphicsItem - clipping all child mouse events that are outside of parent

    Well, technically, it is not outside of the widget - it is inside the child widget, but outside of the parent.

    You can see what I mean in the attachment.

    So, the events occur in the not visible (clipped by parent) parts of the child widget. (it is represented by the mouse pointer hovering the clipped part of the 3rd child widget in the mockup)

    As the documentation states, it *is* the correct behaviour, but it is illogical when the children are clipped to parent.

    Unfortunately it can't be done by checking whether parent and child are hovered since parent thinks it is hovered when one of the children are.
    Attached Images Attached Images
    While you were hanging yourself on someone else's words
    Dying to believe in what you heard
    I was staring straight into the shining sun

Similar Threads

  1. Handling Mouse Events of a parent widget
    By dvmorris in forum Qt Programming
    Replies: 2
    Last Post: 28th March 2007, 18:44
  2. QStackerWidget and mouse events
    By high_flyer in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2006, 19:25

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.