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

Settings widget size to QApplication::desktop()->geometry() with AA_EnableHighDpiScaling and screen scaling doesn't cover whole desktop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.5
    • None
    • Windows

    Description

      I have an application that needs to show a Widget across all screens. I have used following logic to achieve this: 

      setGeometry(QApplication::desktop()->geometry());
      QWidget::show();
      

      lal
      Now whit AA_EnableHighDpiScaling enabled and at least one screen having screen scaling enabled, that doesn't work anymore. It results in this (left screen 1920x1080 scaling 100%, right screen 2560x1440 scaling 150%):

      The geometry returned from QApplication::desktop()->geometry() seem to be with applied scaling where the setGeometry method expects without applied scaling, resulting in the widget only covering part of the desktop instead of all.

      Geometry reported QRect(-1920,0 3200x1080)

      Here is a simple example application https://github.com/DamirPorobic/WindowsFullScreenWithScalingIssue

      Edit: Disabling AA_EnableHighDpiScaling fixes this issue but I need that config to fix other issues.

      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
            dporobic Damir Porobic
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes