Mohsin
24th May 2021, 06:13
I have implemented a QTreeView using the SimpleTreeModel (https://doc.qt.io/qt-5/qtwidgets-itemviews-simpletreemodel-example.html) example.
But now I want to add two sub-columns in one root item. For example, Entries "item A" and "Value" will be inside one root entry "Data A". Similarly Entries "item B" and "Value" will be another root entry "Data B".
Can anybody tell how it can be done?
Thanks in advance :)
But now I want to add two sub-columns in one root item. For example, Entries "item A" and "Value" will be inside one root entry "Data A". Similarly Entries "item B" and "Value" will be another root entry "Data B".
Can anybody tell how it can be done?
Thanks in advance :)