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

QTableWidget verticalHeaderDefaultSectionSize resized on load

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.12.0
    • Fix Version/s: 5.12.3
    • Component/s: Tools: Designer
    • Labels:
      None
    • Environment:
      KDE Neon 5.15
    • Platform/s:
      Linux/X11
    • Commits:
      9b5c31944fb03eea6025186c27cf809cc4a9ae05 (qttools/5.12, 19.3..2019, 5.12.3)

      Description

      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.

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes