Results 1 to 10 of 10

Thread: mouse events and nested widgets

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: mouse events and nested widgets

    The problem: w3 receives TWO mousemove events for every MouseMove.
    How can you say so?
    The two event positions are slightly different, suggesting that the events are fired by w1 and w2, and that the position is relative to the causing widget.
    Show an example
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  2. #2
    Join Date
    Jul 2012
    Posts
    248
    Thanks
    29
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: mouse events and nested widgets

    How can you say so?
    When i breakpoint mouseMoveEvent is break twice for one mousmove, usually i break once.
    Additionally, the y coordinate differs, even though i only moved the mouse vertically.

    I`ll try to reproduce this on a smaller scale now.

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

    Default Re: mouse events and nested widgets

    Please show your mouseMoveEvent() implementation. And tell us which class it belongs to.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jul 2012
    Posts
    248
    Thanks
    29
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: mouse events and nested widgets

    sorry, i cant check out the problematic code right now, i`ll be back monday.

  5. #5
    Join Date
    Jul 2012
    Posts
    248
    Thanks
    29
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: mouse events and nested widgets

    hi guys, sorry for the delay.

    Our servers were down for some time, then i was gone for two days - and pof - the problem disappeared, even though i cannot see any relevant changes to the code in question.
    I´ll be searching through commits some more next week.

Similar Threads

  1. Replies: 3
    Last Post: 12th August 2012, 13:49
  2. Replies: 3
    Last Post: 8th October 2011, 09:46
  3. Replies: 2
    Last Post: 10th June 2010, 05:58
  4. mouse events
    By xyzt in forum Newbie
    Replies: 3
    Last Post: 23rd March 2008, 11:14
  5. mouse moving don't produce mouse events
    By coralbird in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2006, 06:13

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.