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

Some mouse events lost while exec() of a QMenu from QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.2
    • 5.4.0
    • None
    • Qt 5.4, Linux, xcb platform, compiled from source
    • 76de1ac0a4cd384f608a14b5d77a8cf3ef1ec868

    Description

      if from a function invoked from QML a QMenu is open with exec() (thus creating an internal event loop) when the menu is dismissed clicking outside of the process window (for instance clicking on another application window) then the QtQuick application will lose the next mouse click event, anywhere.
      This is tested to happen on Linux/X11

      Attached there is a minimal example:
      a qobject is binded that execs a qmenu (appears on mouse press of the white mouse area)

      if then the menu is dismissed by clicking on another application, if you click on the button in the center nothing will happen. The second time, it correctly prints "Button clicked"

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              notmart Marco Martin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes