Hi,

I want to set QTreeView model from an XML file? I tried with Qt exemples but they are for QTreeWidget, I did not succeed to convert one of exemple to work with QTreeView(with model).

I have an XML file 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