1 2 3 4 5 6 7 8 9
import QtQuick 2.12 as MyQuick MyQuick.Item { function factory(param: string) : MyQuick.Item { function nested(foo: string) { return this } return nested() } }