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

macOS: Context menu and tooltips on wrong monitor



    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: GUI: Menus
    • Labels:
    • Environment:
      Macbook with M1 chip, MacOs BigSur 11.3, 11.4
    • Platform/s:


      On a Macbook with an external display connected, context menus and tooltips will always show up on the laptop screen. Even if the actual application window is on the external display. This happens consistently after the Macbook goes to sleep and is woken up again. After relaunching the application, the context menus and tooltips will show up on the correct display (until the computer goes to sleep again)

      The bug originally showed itself in the application KeepassXC. Here is the original bug report: https://github.com/keepassxreboot/keepassxc/issues/6411

      One of the maintainers asked me to create a Qt bug, as according to them this is an issue with Qt itself and not with KeepassXC.

      I checked KeepassXC with an Intel Macbook and couldn't reproduce the issue. It seems to be an issue specific to M1 Macs. Update: I've found that this bug is not exclusive to ARM M1 Macs. The same bug occurs on an Intel based model as well.


      Steps to reproduce:

      • launch a Qt desktop app with an external monitor connected
      • put Macbook to sleep or wait until it goes to sleep by itself
      • wake up Macbook
      • make sure the application window is on the external display
      • activate a context menu (make a right-click somewhere)



      • Context menu always shows up where I clicked, right where the mouse cursor is



      • Context menu will always show up on the laptop screen, even if the main application window is currently on the external display


      please also see screen shot demonstrating the bug in KeepassXC


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



            qt.team.quick.subscriptions Qt Quick and Widgets Team
            thenickname Ni Mu
            1 Vote for this issue
            4 Start watching this issue



                Gerrit Reviews

                There are no open Gerrit changes