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

Childrens of ColumnLayout inside a SplitView are incorrectly refreshed when moving the splitter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • Some future release
    • 5.3.2, 5.4.0 Beta
    • Quick: Controls 1
    • None
    • PC Windows 7 + minGW

    Description

      • Use attached project testsplitview_fails.zip that uses directly a ColumnLayout inside the SplitView
      • Move splitter to the left
      • the blue and green rectangles are resized below the limit of 100 pixels for the ColumnLayout. We can see in the console that the resize operations are done in the wrong order.
        qml: ColumnLayout width changed = 53
        qml: ColumnLayout width changed = 100
        qml: blue rectangle width changed = 100
        qml: blue rectangle width changed = 53
        
      • Use now attached project testsplitview_works.zip that inserts the ColumnLayout inside an intermediate item
      • Move splitter to the left
      • the blue and green rectangles are resized down to the limit of 100 pixels and no more
      • the console shows a correct order to resizing operations
        qml: ColumnLayout width changed = 68
        qml: blue rectangle width changed = 68
        qml: ColumnLayout width changed = 100
        qml: blue rectangle width changed = 100
        
      • a subsequent question: why there is a useless expensive double resizing operation of all children, for example, resize first to 68 pixels, then to 100 pixels?

      Attachments

        1. testsplitview_fails.zip
          2 kB
          Anthony Groyer
        2. testsplitview_works.zip
          2 kB
          Anthony Groyer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard Richard Moe Gustavsen
            agroyer Anthony Groyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes