QML loader crashes when loading a new item because events from the old QML are being fired

  • I know this is a short description but I am unsure where to start! I have a loader in my Main.qml which is loading each QML file I need. The loader.source is generated from the back end c++ (based from an XML document). The issue is that when a new QML file is loaded events are being fired from the QML being unloade and objects which no longer exist -> crash. I have seen comments that suggest this might be a Qt error (I am using 5.1). Can anyone shed any light at all? Should items loaded into the loader conform to some specific rules??

    Completely baffled! Would appreciate any pointers on this.

Log in to reply