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

Documentation for QFontMetrics::height() is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.2
    • 5.3.0
    • GUI: Text handling
    • None
    • 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

        For Gerrit Dashboard: QTBUG-39668
        # Subject Branch Project Status CR V

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            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