Loader asynchronous return "Object destroyed during incubation" error



  • Hi all
    The following code:

    Loader {
           id: myComponent
    	asynchronous: true
           source: "qrc:/MyComponent.qml"
    	visible: status == Loader.Ready
        }
    

    inside my Main.qml doesn't load the MyComponent.qml and return the error "Object destroyed during incubation" but this only if I set the asynchronous to true. On the contrary asynchronous set to false work correctly and the component is loaded. If I leave MyComponent.qml with only a Rectangle for example without nothing inside is seem is loaded but, obviousluy, nothing is showed. If I start to add child item inside the Rectangle the error came up...
    Someone experimented the same issue and can help?
    Thank you



  • The problem has been reported here, it seem a bug still unresolved unfortunately...

    https://bugreports.qt.io/browse/QTBUG-50992


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.