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

QHeaderView section size is smaller than the text content

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.6.3
    • Fix Version/s: 5.11.1
    • Component/s: Widgets: Style Sheets
    • Labels:
      None
    • Environment:
      Qt5.6.2 on Debian 8 Jessie, Windows7

      Description

      When set a small font size with following Qt style sheet:

      qApp->setStyleSheet("QHeaderView::section:horizontal { font-size: 19px; }");
      

      The QHeaderview section size is smaller than the text content thus it can't show the complete texts. It looks batter if the font size is set to a bit bigger like 51px.

        Attachments

        1. qtbug_56457_complete.png
          qtbug_56457_complete.png
          107 kB
        2. table_header_cut.png
          table_header_cut.png
          5 kB
        3. table (1).cpp
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            wupeng PengWu
            Reporter:
            wupeng PengWu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes