Hello, there.
First of all, I wanted to say, that my problem was already discuss here, on SO, and here it is. But the answers are not the good ones...
So, here is the problem: I have a QTableView
class, with a simple model, connected with tableView->setModel(model); method. For example, I have 4-5 columns. I started up my project application and made some changes with columns width. After I pressed Exit, my project app save state of the tableView->horizontalHeader()->saveState(); data with QSettings
to file. And when I starts up my app again, it makes something like this:
tableView->horizontalHeader()->restoreState(/* data from settings ini file */);
But, nothing happens! The columns widths has standard width. They are not changed with my stored values! :(
Thanks!
PS: This problem not become apparent with QTreeView
class. With QTreeView
all is ok!