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

XCB: high DPI scaling not numerically stable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.1
    • 5.4.0
    • QPA: X11/XCB
    • None
    • 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

            tvete Paul Olav Tvete
            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