Dynamic creation of QML Item from C++ causes ReferenceError
I have created a toast notification system and when I’m creating a toast object in C++ it creates the object, but gives a ReferenceError because of the “globals” which lives in the root of my main.qml. I was expecting this to work since I’m passing the valid QML engine to the QQmlComponent and that point the QML is up and running and has a proper context.