Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to make QTreeView and QListView use one model
tony_tang last edited by
I want to use one same model by QTreeView and QListView, how to make it work, thanks.
Inherit from QAbstractItemModel, implement correct data() method, and all the other methods that need to be reimplemented.