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

QMainWindow::devicePixelRatioF() reports wrong ratio on Wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.2
    • GUI: High-DPI, QPA: Wayland
    • None
    • Linux/Wayland

    Description

      On Wayland QMainWindow::devicePixelRatioF() reports a ratio of 2 when the real ratio is 1.25. On X11 the correct ratio is returned. This is the current state with the latest KDE/Plasma 6 DE.  As the Wayland merge request referenced in QTBUG-87321 was accepted and it still does not work properly in Qt6, I'm opening a new issue as it is not even clear who to blame. Was the change in Wayland not sufficient? Is it a KWin issue? Or is there still a problem in Qt?

      Anyway, from the user perspective, QMainWindow::devicePixelRatioF() is still broken in Qt6 under Wayland and at least it should be mentioned in the Qt documentation, if that can not be fixed in Qt. 

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              tumic Martin Tůma
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes