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