Because there was a change in the record.
Other example of code :
m_ModelProduct->setQuery(SQL_LOCAL_PRODUCTS);
proxyModel->setSourceModel(model);
proxyView->setModel(proxyModel);
proxyView->sortByColumn(1, Qt::AscendingOrder);
if I sort the table, it has a long delay to display the table records. If something changes in records I need to make a setQuery again and therefore a setModel, correct?
Bookmarks