Set XML data to QTableView
-
Hi,
If I understand you well you want to show the title from your XML file in a one column/many rows widget ?
In that case you could simply use a "QListWidget":http://qt-project.org/doc/qt-4.8/qlistwidget.html that you fill while parsing your xml.
Hope it helps
-
If you want to use QStandardItemModel, simply follow the example from the "documentation":http://qt-project.org/doc/qt-4.8/qstandarditemmodel.html#details or use "this":http://qt-project.org/doc/qt-4.8/qstandarditemmodel.html#appendRow-2
The code is easy to adapt to your use case