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

XCB: high DPI scaling not numerically stable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.4.0
    • Fix Version/s: 5.4.1
    • Component/s: QPA: X11/XCB
    • Labels:
      None
    • Commits:
      c1d08afd31074a2733057ed6620735ef2f4dd8c6

      Description

      When resizing a QWindow with devicePixelRatio > 1, the resulting native size will map to a different size than the original. The attached program is stable at dpr 1, but grows continuously at dpr 2. This program is not a realistic use case, but it reproduces a problem with the following Qt Quick application:

      import QtQuick 2.4
      import QtQuick.Window 2.2
      
      Window {
          height: 360
          width: height * 2
          visible: true
          MainForm {
              anchors.fill: parent
              mouseArea.onClicked: {
                  Qt.quit();
              }
      
          }
      }
      

        Attachments

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

          Activity

            People

            • Assignee:
              tvete Paul Olav Tvete
              Reporter:
              tvete Paul Olav Tvete
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes