Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Flatten a hierarchical tree model
sajis997 last edited by
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.