Filter QHeaderView::restoreState() when Table changes
I save the QHeaderView state (in QByteArray format) in an INI file to remember the status of the current execution and load it next time the application is executed. This application has a QTableView filled with a custom model inherited from QAbstractTableModel.
The problem I have is that QHeaderView::restoreState() not checks that the column values and number I get from INI file are the values I have now in the model of the table. I have completly access to the columns of the model and to the INI file.