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

Text descenders cut off on tabs in Qt 4.6.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.6.3
    • 4.6.0
    • Widgets: Main Window
    • None
    • 3baf7b981a8f40ed13c2ffb62d2188a16005f69c

      This is a regression from Qt 4.5.3.

      Text with descenders have their descenders cut off when the text appears in a tab widget when the tabs are on the bottom. Specifically, the bottom few pixels are missing. This can easily be seen in the example application "dockwidgets" that ships with Qt. Simply dock two dockable windows on top of each other so that they create a tab group. One tab is called "Customers" and the other tab is called "Paragraphs". Make sure the "Customers" tab is active, and the "Paragraphs" tab is inactive. Then notice how the descenders in the letters "g" and "p" are cut off on the bottom in the "Paragraphs" tab. This has been observed on Windows and on certain Linux configurations where anti-aliasing is not available. In general it seems that the text metrics are not being calculated correctly to allow for sufficient space to paint the text descenders. This is a regression from 4.5.3, which painted correctly.

        1. qtabbar_orig.png
          qtabbar_orig.png
          126 kB
        2. qtabbar_fix.png
          qtabbar_fix.png
          118 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jbornema Joerg Bornemann
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes