Do they really say that in the docs? Could you quote that? I have never seen such a statement and I've successfully used flat models with tree views many times. You can safely use a table model with a tree view.
Do they really say that in the docs? Could you quote that? I have never seen such a statement and I've successfully used flat models with tree views many times. You can safely use a table model with a tree view.
Michiel (14th May 2007)
The exact words are: "Since the model provides a more specialized interface than QAbstractItemModel, it is not suitable for use with tree views, although it can be used to provide data to a QListView."
But thanks for the answer. I'll go ahead and use the table model.![]()
"The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry
It means that it can't make use of all its capabilities, because you can't build trees with it.
"The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry
It's not misleading for me as I know the model is a subclass of a more general model that is usable with a tree. But you are right, you could interprete it in different ways.
Bookmarks