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

Need a way atomically adjust QWindow minimum and maximum sizes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.1, 6.5.2, 6.6.0
    • 6.4.0, 6.5.0, 6.6
    • QPA: Wayland
    • None
    • Linux/Wayland
    • 42128ec10 (dev), faa16f36f (6.5), be82e8bbc (6.5.1), 8191be512 (dev), 953c61713 (6.5), b4e7e6cfa (6.6)

    Description

      Adjusting either minimum or maximum size resizes the underlying window immediately, this hits an assert if the new minimum size is bigger than the current maximum size or if the new maximum size is smaller than the current minimum size.

      While in specific instances with known values, setting of minimum and maximum widths and heights can be ordered to be correct, this is cumbersome and harder in code where the sizes are not known beforehand.

      The attached example hits the assert for either order of the setMinimumSize/setMaximumSize calls.

      I attached the backtrace of the assert, too.

       

      Attachments

        1. backtrace.txt
          2 kB
        2. qtbug113233.qml
          0.3 kB
        3. test.cpp
          0.3 kB

        Issue Links

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

          Activity

            People

              inho Inho Lee
              davidre David Redondo
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change