MathFurious
13th April 2018, 19:11
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.
<root>
<Folder Name="myFolder">
<File Name="myFile" />
</Folder>
<Folder Name="mySecondFolder">
<File Name="myFile2" />
<File Name="myFile3" />
<File Name="myFile4" />
</Folder>
</root>
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.
<root>
<Folder Name="myFolder">
<File Name="myFile" />
</Folder>
<Folder Name="mySecondFolder">
<File Name="myFile2" />
<File Name="myFile3" />
<File Name="myFile4" />
</Folder>
</root>