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

Extra leave event when leaving window with mouse held

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.0.0, 5.4.0 Alpha
    • Widgets: Main Window
    • None
    • Windows 7
      Linux ?
      Mac ?
    • 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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            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