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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -