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

Adding asynchronous Loader into StackView results in "Object destroyed during incubation" error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.7.0 Beta
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      Mageia Linux Cauldron x86_64, gcc 5.3.1

      Description

      If I add asynchronous Loader with specific source component into stack I see the following errors:

      Object destroyed during incubation
      

      To reproduce, run test program and click on button.

      import QtQuick 2.6
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          StackView {
              id: stackView
      
              anchors.fill: parent
          }
      
          Component {
              id: component
      
              Loader {
                  active: true
                  asynchronous: true
                  sourceComponent: ListView {
                      model: 10
                      delegate: Column { }
      
                      Button {
                          contentItem: Text { }
                      }
                  }
              }
          }
      
          footer: Column {
              Button {
                  anchors.horizontalCenter: parent.horizontalCenter
                  text: "add"
                  onClicked: {
                      stackView.push(component)
                  }
              }
          }
      }
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              krnekit Nikita Krupenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes