//This method does the setup of the initial FormEditorItem tree in the scene void FormEditorView::setupFormEditorItemTree(const QmlItemNode &qmlItemNode) { m_scene->addFormEditorItem(qmlItemNode); foreach (const QmlItemNode &nextNode, qmlItemNode.children()) //TODO instance children setupFormEditorItemTree(nextNode); }