If I am using import "myscript.js" as MyScript in a QML file.

inside of myscript.js referencing an object that has been sub classed as scriptable the engine() variable will be null.

Anyone know a way to get access to the QScriptEngine used to call the script file from the QML code?