Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-27333

Extra leave event when leaving window with mouse held

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.0.0, 5.4.0 Alpha
    • Fix Version/s: None
    • Component/s: Widgets: Main Window
    • Labels:
      None
    • Environment:
      Windows 7
      Linux ?
      Mac ?
    • Platform/s:
      macOS

      Description

      If you hold a mouse button down while moving the mouse out of the application window, the widget that got the mouse-down event will receive a Leave event when the mouse leaves the application window, and again when your release the mouse button. In Qt4, only the last event triggered a Leave event.

      Note that the leave event is correctly suppressed when leaving the widget when holding the mouse button down. The extra leave event is only triggered when leaving the application window.

      It seems to be a fault in how autograbbing the mouse works, and that QApplication::sendMouseEvent does not, and can check if a widget has been auto-grabbed.

        Attachments

        1. qtbug27333_xcb_diag.diff
          7 kB
          Friedemann Kleint
        2. qtbug27333_xcb_diag.txt
          6 kB
          Friedemann Kleint
        3. qtbug27333.zip
          1 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            carewolf Allan Sandfeld Jensen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes