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

QHeaderView::defaultSectionSize doesn't scale on high DPI

XMLWordPrintable

      When you set QHeaderView::defaultSectionSize in a table view such that it looks good on a regular display and then scale your system up in system settings, the cells in the table view are not scaled up while the font size is and now the text doesn't fit to the table cells anymore. See the attached screenshots with normal scale and 300% scale (qtbug_normal.png and qtbug_300.png).

      The attached example can be used to reproduce this. Scale the system up (e.g. 300%) to see the problem. Tested only on Windows 10.

        1. qtbug62688.zip
          8 kB
        2. qtbug_normal.PNG
          qtbug_normal.PNG
          9 kB
        3. qtbug_300.PNG
          qtbug_300.PNG
          12 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            iamsergio Sergio Martins
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes