[Qt-interest] show/hide top level items in tree view
Andre Somers
andre at familiesomers.nl
Wed Mar 23 07:58:26 CET 2011
Op 23-3-2011 7:21, Harish Surana schreef:
> Hi All,
>
> I want to show/hide top level items from tree view. I mean when i
> press hide children should become top level items and when i press
> show it comes back to normal form.
That is nice. I assume now your question is: "how do I achieve that?"
What I would do, is build a custom proxy model that does that for you.
You might be able to use QSortFilterProxyModel as a baseclass.
André
More information about the Qt-interest-old
mailing list