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

WIndows/Quick: Submenu of application menu launched on secondary monitor is shown on primary monitor

    XMLWordPrintable

Details

    Description

      Given:
      Laptop has a connected monitor. Application has been opened on the laptop and moved with mouse to another monitor. Application has a global menu, one item of which contains submenu, created dynamically with Instantiator based on a QAbstractListModel.

      When User clicks on a menu with submenu, submenu is shown on the other monitor (the laptop screen) different from one with the application.

      import QtQuick 2.5
      import QtQuick.Window 2.2
      import QtQuick.Controls 1.4
      
      ApplicationWindow {
          visible: true
          width: 200
          height: 100
      
          menuBar: MenuBar {
                  Menu {
                      title: "File"
                      Menu {
                          title: "Submenu"
      
                          MenuItem {
                              text: "Item1"
                          }
      
                          MenuItem {
                              text: "Item2"
                          }
      
                          MenuItem {
                              text: "Item3"
                          }
                      }
                  }
          }
      }

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              ribtoks Taras Kushnir
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes