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

Native Quick Menu opens in wrong location (Win)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9
    • Quick: Controls 2
    • None
    • Windows 10, two monitors.
      Primary monitor: 3840x2160 150% scaling
      Secondary monitor: 3840x2160 175% scaling
    • Windows
    • b6dde1f31 (dev), f1cd4c57b (6.8)

    Description

      When opening a QtQuick.Controls.Menu type with popupType set to Native on Windows the menu will open in the wrong position when the parent window is moved to a non-primary monitor.

      In this screen shot you can see the position of the button and the incorrect position that the menu has opened (i.e. not under the cursor (not shown) which just clicked the button).

      See attached project for a project that minimally reproduces the issue.

      Attachments

        1. image-2024-08-15-13-23-55-584.png
          259 kB
          Ollie Dawes
        2. win_native_menu.zip
          1 kB
          Ollie Dawes

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              haiku Ollie Dawes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are 2 open Gerrit changes