QTableView: How to get those few records that are visible to user?



  • 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.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.