I am not able to see the data in Qtreeview customised
-
I want a tree like as below
using a QtreeView cutomsize
I have wrritten the code I am getting empty tree
https://paste.ofcode.org/3aJjZiGCeHAhs6DPrKg85B
Can some one help in debugging the issue
-
I really appreciate your big code. Simple question for you. Did you try your custom model with QTreeView ? Does is it return data and shows in the QTreeView ?
Also you can you try your Custom View with QStandardItemModel ? Does it work.
If experiment these, it we can figure out who is real issue.
-
Yes
It shows but in exapnsion it crashesDo we have a example of QtreeView with QAbstractModel where I can such
suct tree view
https://ddgobkiprc33d.cloudfront.net/06b72faf-20d4-47cc-992a-e02c8bf4a0f2.png -
@Qt-Enthusiast said in I am not able to see the data in Qtreeview customised:
Do we have a example of QtreeView with QAbstractModel where I can such
What's wrong with http://doc.qt.io/qt-5/qtwidgets-itemviews-simpletreemodel-example.html ?