You can't remove individual items. According to the docs:
Note that objects cannot be individually added to or removed from the list once created; to modify the contents of a list, it must be reassigned to a new list.
意思是删除组件, obj.children无法单独删除,只能像下面操作一样重新替换整个list
For people who always keep ending up on this page, like I did: I found a very hacky solution to remove an element from a list<QtObject>
.
myList = Array.from(myList).filter(r => r !== elementIWant2Remove)
This is not very elegant, but it does the trick, if you need to remove an element.