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

6.5.2: Windows - QML contents are drawn with incorrect DPI (multiple monitors)

    XMLWordPrintable

Details

    • Windows

    Description

      I attached a sample application which demonstrates that QQuickView does not react well for DPI changes under Windows.

      Using the sample app you can reproduce the issue this way :
      1.: Make sure that you have multiple monitors attached to the computer
      monitor1 (in my case this is my laptop’s monitor) : 100% DPI
      monitor2 (in my case this is an external monitor, connected to my machine using a cable) : 350% DPI (or probably anything higher than 100%, but the issue is more visible in case if there is a bigger difference between the DPI settings of the 2 monitor)
      2.: Make sure that monitor1 is the configured as main display (“Make this my main display” is checked in Windows Displays settings)
      3.: Run the attached sample app (load it in Qt Creator, select Qt 6.5.2 Qt version and just simply compile and run it)
      4.: Open the Display Settings under Windows
      5.: Set monitor2 as the main screen

      Expected results :
      1.: Both windows should stay on the same screen as before
      2.: The drawn contents in both the application windows shouldn’t change

      Actual results :
      1.: Both windows stays on the same screen as before
      2.: The drawn contents in one of the application windows changed. It was changed in the window, which is using QQuickView (everything is drawn using the 350% DPI settings, instead of the expected 100% DPI settings). The other window is using QQMLApplicationEngine : that window is still drawing the contents as expected (still draws everything using the correct DPI, which is 100%). So using QQMLApplicationEngine the issue is not reproducible. The issue is only reproducible using QQuickView.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            csnt Csaba Szigeti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes