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

[REG 5.7.0->5.12.1] QHeaderView::setDefaultSectionSize size bound check creates problems while generating code from ui files

    XMLWordPrintable

Details

    • All
    • 02c25f334da817fe206aa28ba0e045c57d8c0359 (qt/qtbase/5.12)

    Description

      There was a qBound check added to the QHeaderViewPrivate::setDefaultSectionSize method with the commit faff43348bfae5cfc709fabe9d2698fc3063c050.  This causes problems, that were partially described in the QTBUG-69431.  In short: if you call setDefaultSectionSize with a value, that is less than current minimumSectionSize, the size would be set to the current minimum.  That is not much of a problem, as you can fix that by proper sequence of setting minimum and default sizes.

      Now the real problem arises, when you try to configure a table in ui file, by setting minimum and default sizes to one of its headers.  The generated ui_*.h file will put setDefaultSectionSize call before setMinimumSectionSize, and the former request doesn't set the desired value.  As a result, generated table does not reflect its settings.

      Attached project recreates this issue.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-74352
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              dmytrosh Dmytro Shtepa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes