1 2 3 4 5 6 7 8 9 10
import QtQuick 1.0 QtObject { function myFunction() { a = 10; } Component.onCompleted: myFunction(); }