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

popup menu on QToolButton displays at wrong screen

    XMLWordPrintable

Details

    • Windows
    • 70404a277 (dev), 55a5cc4c9 (6.6), 14c53291b (tqtc/lts-6.5)

    Description

      The popup menu of a QToolButton (setPopupMode(QToolButton::MenuButtonPopup)) is shown on the wrong screen in multiple screen setup.
      Everything works fine as long as the menu fits entirely on the smaller screen. Otherwise it isn't always displayed near the button but on the other display.

      Attached example reproduces this.

      Run the example and then bring it on the second screen and then hit menu button. 

      There is little difference in Qt6 and Qt5

      Qt 6)

      • before: the menu is always displayed on the main display even if the window is moved to the other one
      • aboutToShow: the menu is allways displayed on the display where the window was while pressing the button for the first time

      Qt 5)

      • before: the menu is always displayed on the main display even if the window is moved to the other one
      • aboutToShow: if the window is not on the main display while pressing the button for the first time the menu appears near the button. The second time appears on the main display. Otherwise it's always on the main display.

      Attachments

        Issue Links

          Activity

            People

              johanseg Jøger Hansegård
              irfan.omair@gmail.com irfan B omair
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: