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

Crash when using Pane in a complex layout

    XMLWordPrintable

Details

    • All

    Description

      It was hard to make a summary that summarizes the complexity of this case. We have a complex layout in our application and when porting to Qt 6 we were faced with this awkward crash.

      A RowLayout, containing two Pane, where each Pane has a RowLayout as a child and a repeater with dynamic models. 

      If the Pane child has "anchors.fill: parent", and the model of the RowLayouts changes, there is a crash. It important that both models change, if the number of items in the first RowLayout is the same, the crash will not happen. It will also not happen if Pane is switch over to Item. This makes us believe that this is a Pane bug.

      After opening the attached example, click on the screen to switch the model, and it will crash. Commenting line 41 of main.qml, prevents the crash.´

      It should also crash in other platforms. We have only tested in Mac and iOS. 

      Attachments

        Issue Links

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

          Activity

            People

              smd Jan Arve
              sinosoidal Nuno Santos
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes