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

There are no any QML Screen change notifications when you change the MacBook display resolution

    XMLWordPrintable

Details

    • All
    • 00f58f2ec (dev), 9512dad10 (6.8), a0bddf81e (tqtc/lts-6.5)

    Description

      There are no any QML Screen change notifications when you change the MacBook display resolution. Neither Screen's geometry has changed nor DPR.

      Code sample:

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
      
          readonly property rect screenGeometry: Qt.rect(screen.virtualX, screen.virtualY, screen.width, screen.height)
          onScreenGeometryChanged: {
              console.log("Screen geometry has changed. New geometry: " + screenGeometry)
          }
      
          readonly property real screenDpr: screen.devicePixelRatio
          onScreenDprChanged: {
              console.log("Screen DPR has changed. New DPR: " + screenDpr)
          }
      }
      

      Steps to reproduce:
      1. Launch the sample
      2. Change MacBook's display resolution via Settings

      3. Observe console output

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes