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

Regression: The width of the rect returned by QFontMetrics::boundingRect(QString) is to small on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 3.x, 4.6.0
    • GUI: Font handling
    • None
    • OpenSuse 11, qt-x11-4.6.x git repo build.
    • 40b6c1dd9199ac5e0d6a1921b05c11e647d09dca

    Description

      boundingRect returns a smaller width for the string on linux. This doesn't happen in Windows or against 4.5.x.
      Font family and font size doesn't influence the result.

      test case attached

      Attachments

        1. qfont.cpp
          0.8 kB
        2. qfont_46_vs_453.png
          qfont_46_vs_453.png
          18 kB
        3. font.jpg
          font.jpg
          19 kB
        4. qt463_vs_qt453.png
          qt463_vs_qt453.png
          19 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jiang Jiang Jiang
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes