Results 1 to 3 of 3

Thread: Grabbing mouse events from frame of top-level widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jun 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3

    Default

    The documentation for QMoveEvent reads:

    The QMoveEvent class contains event parameters for move events.

    Move events are sent to widgets that have been moved to a new position relative to their parent.

    The event handler QWidget::moveEvent() receives move events.

    My toy code suggests that a top-level widget never gets this event since there is no parent, and therefore, no relative position w.r.t. parent. Is this interpretation mistaken? Thanks.

    I revisited my code and found a simple error. I do in fact get the move events. Thanks.
    Last edited by wysota; 21st June 2009 at 09:01.

Similar Threads

  1. Changing mouse grabbing behavior?
    By FlyingSaucrDude in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2008, 01:04
  2. Determining when mouse over widget without events
    By Kimmo in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2007, 10:48
  3. Handling Mouse Events of a parent widget
    By dvmorris in forum Qt Programming
    Replies: 2
    Last Post: 28th March 2007, 18:44
  4. QStackerWidget and mouse events
    By high_flyer in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2006, 19:25
  5. Forwarding mouse events to another widget.
    By yogeshm02 in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 13: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.