QtitanDataGridModel-view DataGrid component with rich functionality for Qt.C++ and PySideQtitanRibbonReplicates Microsoft RibbonUI interface for Qt.C++ and PySideQtitanNavigationDesignUIReplicates Microsoft Navigation Design interface for Qt.C++ and PySideQtitanChartCharts and Diagrams component for Qt.C++ and PySideQtitanDockingDockable Panels and Tool Bars for Qt.C++ and PySideQtitanFastInfosetXML Compressed format FastInfoset implementation for Qt.C++ and PySideRoadmap Development 2023
FireDataGridPowerful, modern, fast, DB-Aware Grid for Delphi-FiremonkeyFireDockingDelphi IDE/Visual Studio implementation of dock panels for Delphi-Firemonkey
When the model raises 'headerDataChanged' signal, this is ignored by the QtitanDataGrid. Inspecting the dumpObject() output (shown below) it appears the view never connects to the signal.
Is there are way to trigger the view to update it's column headers?
OBJECT GenericParametersTableModel::unnamed
SIGNALS OUT
signal: destroyed(QObject*)
--> Qtitan::GridModelController::unnamed modelDestroyed()
signal: destroyed()
signal: objectNameChanged(QString)
signal: dataChanged(QModelIndex,QModelIndex,QVector<int>)
--> Qtitan::GridModelController::unnamed modelDataChanged(QModelIndex,
QModelIndex)
signal: dataChanged(QModelIndex,QModelIndex)
signal: headerDataChanged(Qt::Orientation,int,int) <---- No one is listening.
signal: layoutChanged(QList<QPersistentModelIndex>,QAbstractItemModel::L
ayoutChangeHint)
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.