Important: Please read the Qt Code of Conduct -

refresh data in QTableView(QAbstractItemView)

  • Hi,

    I have a quick question about QAbstractItemModel.dataChanged signal.
    Does it update/refresh the view without touching the view such as selecting a cell and resizing the view?
    I want to pragmatically update my view in real time with the signal but it's not working.
    My view is only updated when I touch the view(eg.resizing).


  • if the model and the view are implemented correctly then yes, everything works out of the box, no need to do anything manual. QAbstractItemView::setModel will take care of putting the plumbing in place

  • @VRonin Thanks for confirmation!


Log in to reply