PDA

View Full Version : Problem with updating a view after sorting a model



araglin
14th January 2009, 09:55
I have a Model-View Application.

Model represents a QList<QStringList> structure.
in sort() function of model I swap the positions of items in QList<QStringList> but there is no refresh of the view - QTableView.

Please help!

wysota
14th January 2009, 10:10
You have to emit a layoutChanged() signal after reordering items.