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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.7.0 Beta
    • Quick: Controls 2
    • None
    • 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

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              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