Important: Please read the Qt Code of Conduct -

QTreeView data change

  • Hi.

    How do I refresh my tree view at a specific point?

    For example, say I have 4 children of the main root. Each child has a further 4 children etc. How do I refresh child 1 off the root without having to reset the tree.

    Thx SJ

  • Me again. Just to clarify. I do not want to add or remove data to the tree. I have tries dataChanged (emit dataChanged(1)) but it caused an exception. I also want the tree to keep its 'shape' during the refresh hence the reason why I cant use the reset method


  • Solved. emiting dataChanged does indeed work. It was a bug in my model. Regards, SJ

Log in to reply