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

qApp activeWindow wrong after button menu popup

    XMLWordPrintable

Details

    Description

      qApp->activeWindow() is incorrect when clicking to another window after a button menu popup was shown. Does not matter if you click the other window's titlebar or in any empty layout area. When the popup action is selected or closed, this problem goes away.  Please see screen shot. I attached a small program to reproduce it.  The bug is similar on macos 10.13.3 and qt 5.7.0 and 5.9.2.

      Attachments

        1. 5.15.3.mp4
          245 kB
        2. activeWindow.zip
          84 kB
        3. activeWindowBug.png
          activeWindowBug.png
          83 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-66513
          # Subject Branch Project Status CR V

          Activity

            People

              vhilshei Volker Hilsheimer
              remik Remik Ziemlinski
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes