Hello,
I'm trying to learn how to use Qt's Model/View framework, and i am stuck with a "simple" problem. I've a 'composite' class called Composite that contains other classes, either Composite(s) or Leaf(s). I have subclassed a QAbstractItemModel and rendered my hierarchy of Composite items in a QTreeView. What i would like to ask, is how to update a view when i know that the model (or some part of it) has changed outside the view. If a single Composite gets changed, deleted or something else, externally, how can i inform the view ? Should i reload the model ? There is a signal called dataChanged but it needs two QModelIndex arguments which i don't have, am i correct ? Am i missing something ?
Bookmarks