Hello
im using QStandardItemModel to load data from data structure that is singleton in my application and treeview to display . this data structure is updated each N seconds , how can i update the model every time this singleton got updated ?
Hello
im using QStandardItemModel to load data from data structure that is singleton in my application and treeview to display . this data structure is updated each N seconds , how can i update the model every time this singleton got updated ?
Call QStandardItemModel::setData() with the new data?
Or you could use the void QAbstractItemModel::beginResetModel () and the void QAbstractItemModel::endResetModel () for the model to query for the data again.
Bookmarks