PDA

View Full Version : How to adjust QScrollBar in a QTableView/Model?



mismael85
10th November 2010, 09:38
Hi,
I am developing a QTableView with a QAbstractTableModel. i know that the model will generate 100,000 row , but those rows are generated when the user scroll down 10 rows each time.
So, the scrollBar of the view does not take 100,000 row size but it takes the size of the existed rows only.
How can i make the scroll bar takes the size of 100,000 row,while the view only has 10 rows?
thank you

wysota
10th November 2010, 10:43
You can return the full row count from the model but only generate the required data when it is first referenced.