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
Hello
I have an application, that displays some data in grid, that is changing over time. The number of rows always stay the same. I calculate my data in separate thread. But when I’m trying to update my model from that thread, the grid doesn’t change.
QStandardItemModel *dataFormModel;
void realObjectList::updateDataInTable(const std::vector<ModelObject>& aObjectList)
{
if (aObjectList.size() == dataFormModel->rowCount())
{
for (int i = 0; i < aObjectList.size(); i++)
{
dataFormModel->item(i, 3)->setData(QString::number(aObjectList[i].GeogCoordinate()), Qt::DisplayRole);
// Update other columns
// ...
}
}
}
If I call this method in timer from GUI, it works ok. But I need to make my calculation in separate thread.