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

Dpi Scaling affect line width.

    XMLWordPrintable

Details

    • Windows

    Description

      Customer informed us about line width changes with different scaling settings:
      "Depending on DPI scaling settings of the operating system, lines that are intended to be cosmetic (e.g. a thin rectangle frame) may be drawn with different pixel widths for different sides of the same rectangle, which looks really ugly.

      A quick search has not revealed any properties that allow me to specify a border as "cosmetic". Since the border width is int, I also cannot specify a fraction to correct the DPI scaling (and I also don't know how to get the current DPI scaling factors in QML in order to calculate the correction factor).
      The same problem applies to other areas of line drawing, e.g. ShapePath"

      Example pictures and project attached.

      Tested with Qt 6.4.2

      Attachments

        Issue Links

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              tero.pelkonen Tero Pelkonen
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: