I run script file with QQmlEngine.
I passing QVector3D value to qml (QQmlEngine):
QVector3D dir(1,2,3); QQmlEngine lifeEngine; lifeEngine.globalObject(