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

If the dpi has scaling and the QFont::setStretch parameter is less than 100, the drawing will be abnormal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2, 6.8.0
    • GUI: Painting
    • None
    • Windows

    Description

      Set the aspect ratio stretch of text through QFont::setStretch in the code. If the dpi has scaling and the QFont::setStretch parameter is less than 100, the drawing will be abnormal.

      When the system DPI is scaled to 100% or Qt scaling is disabled:

      When the system DPI scaling is not 100% and Qt scaling is enabled:

      If the QFont::setStretch parameter is greater than 100, there is no problem:

      Attachments

        1. 5dd6f4f3-6d1a-49e3-b3bf-37f46caec437.png
          7 kB
          建波 龚
        2. 9db2c617-28aa-475a-a9d8-ad747686da1a-1.png
          3 kB
          建波 龚
        3. f761e673-6555-471f-9a46-ede767211e86.png
          10 kB
          建波 龚
        4. TestQt_20250120_Painter.zip
          1 kB
          建波 龚
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            gongjianbo1992 建波 龚
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes