When model created i am seek through whole file and create QHash of all items offsets. key = row, value = qint64(offset)
And when i need to get item data i am seek directly to interesting pos in file and read it.
rowCount equals to hash size
When i told model storing data (in "Million example") i meen it provide this amount of data. See the attached file in my second post.
In that example no any data readed by model. Only QTableView works for painting empty cells. And it works quite slow then i am try to scroll it up/down very quickly
Then i debug my application most time spended to repaint QTableView ...
P.S. Jal' ja ne mogu tolkom ob`jazsnit' to chto mne nujno. My english is too bad ...![]()
Bookmarks