Qt - what's preferred to use - widgets or views? (Tree, Table, List)

c++, model-view-controller, qt

Solution

You should know two things.

How important is speed data load. See this question - Qt model/view vs standard widget.

Do need implementation of QAbstractItemModel that can be more useful than QStandardItemModel? For example, if you already have QVector that need present in a view, for you will be great use own model than standard.

Problem

I started to use Qt model-view system with QStandardItemModel and some views. But then I noticed that there are also Widgets - Tree, Table, List, that happend to be almost the same in use as views. I read Qt docs about it and honesty didn't understand for what we need also widgets, why views is not sufficient..

Original source

Related problems