PDA

View Full Version : Any way to preserve QTableView entire geometry?



ls4f
3rd January 2012, 06:19
I asked google, but can`t seem to find a 'Qt way' to preserve the info about column withds and/or hidden columns in a QTableView. I want to provide (some of) the users with the possibility to resize it, and then save it somewhere so that I can restore at next run.

Is there a way to do this without iterating over the view and making some sort of a map between logical index and with/visibility?

Spitfire
4th January 2012, 15:05
There are saveGeometry() and saveState() methods, but unfortunatley they won't apply here.

I don't think there's out-of-a-box solution for that so you may need to implement it yourself for this particular purpose.