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

Documentation for QFontMetrics::height() is wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.0
    • Fix Version/s: 5.3.2
    • Component/s: GUI: Text handling
    • Labels:
      None
    • Commits:
      0f2ed80a0cfd0442fd5ea1fc1fd4a76ffb8a162a

      Description

      In the documentation for QFontMetrics::height() it refers to the +1 which was previously added to the height of fonts in Qt.

      While the baseline is a one-dimensional metric, and does not have a vertical size, in Qt 4, we would add 1 to the height of fonts and then subtract 1 from the descent in all layout code to compensate.

      In Qt 5 this was fixed, but the documentation was not updated.

        Attachments

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

          Activity

            People

            Assignee:
            esabraha Eskil Abrahamsen Blomfeldt
            Reporter:
            filousov Pavel Celba
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes