QTableView::resizeRowsToContents
-
I am using QTableView in my qt application, to show the data. Some times dynamically I want to increase the row height of my QTableView, based on the data size. So I used resizeRowsToContents(). Up to 15000 rows it seems fine, but after that if I call the function, it becoming slow. How to avoid the slowness when I am using the resizeRowsToContents(). Kindly give me some suggestion.
Thanks in advance
Vivek Anand -
Hi,
The most simple is usually the best: avoid resizing big number of rows.
Do you really need to have that much data loaded at the same time ? How much are you looking at ?
-
Hi,
yes, I want to load the much data and resize too. Is there any option to do that. -
One thing you can do is resize smarter i.e. only resize what is currently visible.
-
Hi,
If I scroll up to see the previous data, then how can I resize the previous data. -
If they have already been shown once then the resize should already have happened if you implemented it.