In QML's internal functions, your self is of type QQuickItem, while a regular JS object (created using "new Object ()" or "{" prop ":" value "}", for example, is of type QJsValue . And "I" is not a variable name, it is a QML id, remember that defference.
QML \ , , "" JS. "typeof" ( "" JS ), - :
if(obj.children)
return true;
else
return false;
- "children" QML "list", .
, - QML, - .