Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QTableView: How to get those few records that are visible to user?
mohsen last edited by
I just wanna know if it's possible to have only those few records which are visible to user in QTableView area. This gives possibility to take the process to its lowest state when i operate for only few items instead of too many records.
giesbert last edited by
You could try QAbstractItemView::indexAt() for the top left corner and the bottom right corner.
I'm not sure whther rect() gives the correct indizes or if you have to ask the viewport for the coordinates, just try that out.