python - PyQt4: Is it possible to have items with multiple parents in a QTreeView? -


i'm trying visualize model, each object can have multiple parents. minimal example:

root   |--- parent1   |      |--- child1   |      |--- child2   |--- parent2          |--- child1          |--- child3 

i can't figure out how visualize model using standard qtreeview widget. i'm subclassing qabstractitemmodel class making own model, unsure how re-implement parent() method, since must return single index (the index of single parent), far understand. in model above, child1 have 2 parents.

i've tried have @ this identical question, i'm little lost @ answers, since quesion regards qt implementation , not pyqt – , i'm no @ c++.


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -