import QtQml QtObject { function bar(foo : Foo) { var state = foo.whatSUp() } }