I am using QTableView connected to an QSqlTableModel so everytime my user hit refresh or change filter settings then i would change the sql statement then feeding it back to my model so my view will refresh its data.

Now, I want the row height of my table to stay the same prior to the refresh. In other words keep whatever the row heights of my user after my model issue the reset (when my model changed its query)

I can manually take a snapshots of the row height prior to refresh then apply it again after the refresh but then i dont think this is efficient. What if my row count more than 200

Is there any other elegant way to do this?

baray98