Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.13.2
-
None
Description
In our application, we're using States in a Loader.
This leads to the engine complaining on exit:
"There are still \"1\" items in the process of being created at engine destruction."
The QML code to reproduce this can be boiled down to:
import QtQuick 2.12 import QtQuick.Controls 2.12 ApplicationWindow { visible: true property bool stateActive: true Loader { id: loader asynchronous: true states: [ State { when: stateActive PropertyChanges { target: loader; sourceComponent: mainComponent } } ] } Component { id: mainComponent Rectangle { } } }
The Error message itself isn't a big deal, but replacing those states with something else, or disabling the 'asynchronous' property lead to more strange errors appearing elsewhere. So i wanted to dig deeper and see if the answer to this could tell us something more.