I am updating some data that is displayed in a QTreeView, but the change in the data it is not being displayed. I have tried explicit calls to repaint(), update(), dataChanged(), (on both the QtreeView and the containing window) plus a few others but no joy.

However if I click on any item in the QTreeView, or on another window then the change is updated, so I know that the change is in my model. Does anyone have any ideas on how I can get the QTreeView to automatically display the new state?

thanks.