I have do this:
for (int i=0; i<ui->Tree->topLevelItemCount(); i++)
{
childNode = outputChildrenOfNode(ui->Tree->topLevelItem(i), doc);
root.appendChild(childNode);
}
QDomNode childNode;
for (int i=0; i<ui->Tree->topLevelItemCount(); i++)
{
childNode = outputChildrenOfNode(ui->Tree->topLevelItem(i), doc);
root.appendChild(childNode);
}
To copy to clipboard, switch view to plain text mode
But with this list:
List.png
And in the XML file it return:
<Child Name="Folder1">
<Child Name="File1"/>
<Child Name="File1"/>
<Child Name="File1"/>
</Child>
<Child Name="Folder1">
<Child Name="File1"/>
<Child Name="File1"/>
<Child Name="File1"/>
</Child>
To copy to clipboard, switch view to plain text mode
Bookmarks