Probably a simple question on sharing one model between two views
-
In this case, I am working with legacy code. I have a large deque data structure. This is the data source. I need two QTableView widgets on a single dialog that utilize the same data source but show different columns of data. Since each table displays different columns of data, how can they share the same QAbstractItemModel? Is this what proxy models are for?
-
Hi,
If it's only a question of showing specific columns, you don't event need a proxy. You can use "QTableView::setColumnHidden":http://qt-project.org/doc/qt-5/qtableview.html#setColumnHidden
Hope it helps