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

QFontMetrics::boundingRect(QString) returns incorrect bounding box on Windows XP and Mac OSX

    XMLWordPrintable

Details

    • macOS

    Description

      The bounding boxes of QStrings as returned by QFontMetrics::boundingRect(QString) tend to be a couple of pixels wider then the enclosed text. This is apparent under Windows XP and on OSX.

      Note: In Qt 4.3 there is a call giving the exact bounding Box of a string called tightBoundingBox(). The main problem here is that the method is very slow on Windows.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            ebaak Ed Baak (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes