1 2 3 4 5 6 7 8
import QtQml QtObject { id: self function createList() : list<QtObject> { return [self] } Component.onCompleted: console.log(createList()) }