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

resizeColumnsToContent does not take font into account

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.4.1
    • GUI: Text handling
    • None

    Description

      I have set a different font for the QHeaderView of my QTableView.
      font size 14, bold
      I did this via stylesheets.

      Now, when I call resizeColumnsToContent() the layout system will not consider that font. Instead it calculates the needed space based on the default system font.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            born Stefan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes