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

Change or document interaction between sizePolicy and minimum/maximum size

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.6, 5.12.0
    • Widgets: Layout
    • MacOS 10.14

      XCode 10.1

    • macOS

    Description

      When a widget inside a layout has sizePolicy set to Fixed but also has set a minimumSize which is smaller than the size hint, the widget behaves like having the size policy set to Maximum, meaning the widget can be shrunk down from the size hint to the minimum size.

      I guess analogous behavior can be observed with maximumSize.

      Expected Behavior

      The widget has a size fixed to the size hint unless the size hint is smaller than the minimumSize in which case the size is fixed to the minimumSize.

      Suggestion

      Either change the behavior as described above (see expected behavior) or document that having a minimum or maximum size makes the widget behave different from its sizePolicy.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jochen.ulrich_cm Jochen Ulrich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes