Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Mouse event order from Qt 4.8.4 to Qt 5.X

    General and Desktop
    2
    2
    477
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • kragnfrol
      kragnfrol last edited by

      Hi !

      I had an app working with QT 4.8.4 and migrated it to Qt 5.5.

      I've a bug with my pan tool. I can hold the right mouse button to move stuff inside a widget, and if I release the right mouse button while the mouse is on top of another widget, the pan tool is correctly desactivated with Qt 4.8.4.

      It's now broken with Qt 5.5, and It's because I get the mouseLeave event first, and then the mouseRelease, while Qt 4.8.4 sent the mouseRelease event first.

      I know I can fix my code, but I would like to know more about it.
      Is there any other event which are now sent in a different order ? Is there a way to change that order ? Is that an wanted change and why is it different now ?

      I just want to understand these changes to know if there is some other hidden bugs in my app.

      Thanks a lot !

      Cheers,

      Valerian

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        I remember there was a thread about that on the interest mailing list.
        There might also be a bug report about it.

        You should check both.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post