Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Loader asynchronous return "Object destroyed during incubation" error

Loader asynchronous return "Object destroyed during incubation" error

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • deleted57D Offline
    deleted57D Offline
    deleted57
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • deleted57D Offline
      deleted57D Offline
      deleted57
      wrote on last edited by
      #2

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

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved