PDA

View Full Version : QColumnView persistence



Festus Hagen
15th August 2013, 09:48
Hi all,

How can one have persistence on the splitter(s) of a QColumnView.

Already have it for others, unfortunately I cannot seem to figure out how to for QColumnView.

Tried saveGeometry() and restoreGeometry(...) however I believe they are the window size/placement ...

Thanks

-Enjoy
fh : )_~

Santosh Reddy
16th August 2013, 05:16
Use columnWidths() and setColumnWidths()

Festus Hagen
17th August 2013, 12:52
Thanks Santosh,

Been trying that but have been unsuccessful in saving the QList<int> with QSettings.

Even after declaring it as a meta object ...

So obviously I'm doing something wrong somewhere and not finding a clear example.

-Enjoy
fh : )_~