79442279

Date: 2025-02-15 21:44:48
Score: 1
Natty:
Report link

This is an old question but I found a solution. I'm using a QSortFilterProxyModel but it should work with your tree model. Just emit the dataChanged() signal with invalid model indicies like so:

dataChanged(QModelIndex(), QModelIndex());

This way no data is affected and the treeView refreshes.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: John Grabow