I have tried the recent update , with QtitanDataGrid 7.3.0 I can change content of the table header. But What I need is a dynamic change, the size of my header is not fixed; for example , I change the table from 5 columns to 6 columns, I failed again;
headerDataChanged() is used to notify about the text changing only.
To change the count of column you have to raise event QAbstractItemModel ::columnsInserted(const QModelIndex&, int, int). Also you can try to rebuild the layout completery with QAbstractItemModel::modelAboutToBeReset(), QAbstractItemModel::modelReset() events.