How to use headerData as Model for HorizontalHeaderView if used with a QSortFilterProxyModel
Unsolved
QML and Qt Quick
-
Hi,
If I have a QAbstractTableModel and filter it with a QSortFilterProxyModel, the HeaderViews for the TableView don't take the headerData as a model for the data: https://doc-snapshots.qt.io/qt6-dev/qml-qtquick-controls2-horizontalheaderview.html
see also: https://forum.qt.io/topic/120622/horizontalheaderview-with-qsortfilterproxymodel
The HorizontalHeaderView can also be assigned its own model. How can I create a model of the headerData of my QSortFilterProxyModel so I can supply it to HorizontalHeaderView?