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

QPainter coordinates rounding broken when HiDPI scaling is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.1
    • GUI: High-DPI
    • None
    • Linux/X11, Windows

    Description

      QPainter coordinates rounding is broken in in Qt6 when HiDPI scaling is enabled and set to the "typical" value of 125%. The 1px offsets are clearly visible on the attached GPXSee screenshot (Linux/X11, but the same applies to Windows 11).

      The issue affects only the raster renderer, when a QOpenGLWidget is used as the viewport instead of the standard QWidget (select "Use OpenGL" in the "System" preferences of GPXSee), the rounding error vanishes.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            tumic Martin Tůma
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes