Hi,

I want to save all QTreeView items in an XML file, including child an parent, I searched but I found nothing... It is possible like below?

Qt Code:
  1. <root>
  2. <Folder Name="myFolder">
  3. <File Name="myFile" />
  4. </Folder>
  5. <Folder Name="mySecondFolder">
  6. <File Name="myFile2" />
  7. <File Name="myFile3" />
  8. <File Name="myFile4" />
  9. </Folder>
  10. </root>
To copy to clipboard, switch view to plain text mode 

QTreeView.png