import "qtbug_22843.js" as MyScript import QtQuick 2.0 QtObject { Component.onCompleted: MyScript.func() }