Subclassing QTableView to dynamically hide columns
Solved
General and Desktop
-
Hello, I would like QTableView to react to query being reset in particular model (I would say
QAbstractItemView::model().dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
, but it's not that, the model I'm interested in isn't set to view, it's behind a proxy so I would rather add aQTableView*
pointer field to subclassed child of QTableView I'd be making; and also define setter such assetModel(QSqLQueryModel* qm) {m=qm;}
. Question is - how do you see efficient check for whole column, can you give any sample pseudocode? Or links to doc.qt? -
Hi,
Why not just connect that specific model modelReset signal to whatever slot does what you want ?