Flatten a hierarchical tree model

  • Hello forum,

    I have created a tree hierarchy by subclassing the QAbstractItemModel and assigned the model to the tree view. I also have a line edit above in the layout widget which needs the QCompleter support. Instead of the completion one level at a time i would like to give the line completion support for all the tree item data that matches the entered string. In that case i need to create a proxy model and flatten the original tree there, i believe.

    Any idea how to browse through the original tree and flatten it out ?

    Any hint, example application or reference would be very helpful. I have check the official manual and it did not cover much on this issue.


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.