Qt-jambi-interest Archive, April 2007
QTreeModel with many columns
Message 1 in thread
Hello,
i've been able to create a tree view with a QTreeModel. But i have no clue
how to display multiple columns and fill them with appropriate values. Is
this possible and how?
kind regards,
Manfred
Message 2 in thread
Manfred Schäfer wrote:
> Hello,
>
> i've been able to create a tree view with a QTreeModel. But i have no
> clue how to display multiple columns and fill them with appropriate
> values. Is this possible and how?
Hi Manfred,
QTreeModel is a single-column hierarchical model. To create multi-column
content you will need to subclass QAbstractItemModel directly.
-
Gunnar