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

QTableWidget verticalHeaderDefaultSectionSize resized on load

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 5.12.3
    • 5.12.0
    • Tools: Designer
    • None
    • KDE Neon 5.15
    • Linux/X11
    • 9b5c31944fb03eea6025186c27cf809cc4a9ae05 (qttools/5.12, 19.3..2019, 5.12.3)

      If a QTableWidget (Item-based) is added to a UI dialog, and its verticalHeaderDefaultSectionSize is set to a value smaller than 32 (e.g. 16), after saving and restarting QT Creator and loading the UI file, verticalHeaderDefaultSectionSize is reset to 32.

      Step-by-step instructions:

      • Start QT Creator
      • File -> New File or Project -> Qt -> QT Designer Form -> Accept everything
      • Drag a Table Widget from the Widget Box onto the Dialog
      • Change "verticalHeaderMinimumSectionSize" to 16
      • Change "verticalHeaderDefaultSectionSize" to 16
      • Save
      • Exit
      • Start Qt Creator
      • Open file via "File -> Recent Files"
      • "verticalHeaderDefaultSectionSize" is again 32

      Possible problem:

      Probably the attributes "verticalHeaderDefaultSectionSize" and "verticalHeaderMinimumSectionSize" are loaded in the wrong order, causing the default "verticalHeaderMinimumSectionSize" to constrain "verticalHeaderDefaultSectionSize" to a value larger than 32.

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

            kleint Friedemann Kleint
            2xb Benedikt Bieringer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes