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

QQuickWindow::screenChanged signal is not emitted after changing the display in Windows settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14, 5.15
    • None
    • Windows 10 (19045.4046), Windows 11 (22631.3155)
    • Windows

    Description

      I have this sample code:

       

      import QtQuick 2.14
      import QtQuick.Window 2.14

      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")

          onScreenChanged: 

      {                console.log("screen changed")       }

      }

      I have two monitors.

      Steps to reproduce:

       

      Windows 11:

       

      1) Window is opened on secondary monitor

      2) Choose "Show only on <number of primary monitor>" -> window now is on primary monitor -> get "screen changed" message in output

      3) Choose "Extend these displays" -> window now is on secondary monitor -> got no "screen changed" message in output

       

      Windows 10:

       

      1) Window is opened on primary monitor

      2) Choose "Show only on <number of secondary monitor>" -> window now is on secondary monitor -> get "screen changed" message in output

      3) Choose "Extend these displays" -> window now is on primary monitor -> got no "screen changed" message in output

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            daniil_ubica Daniil Volkov
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes