On Tue, Feb 7, 2012 at 10:22 PM, Aaron Richiger <a.ri...@bluewin.ch> wrote: > Hello Jun! > > As other suggested, model.rowsInserted(parent, start, end).emit() is the > signal you need. To show you the way one could do this, I shortly changed > the Simple Tree View example of PySide (quick and dirty, I know, but it > shows enough)... You may add new items filling in the LineEdits and then > clicking the button. The only magic line is the last one of the method > TreeModel.addData().
this is awesome, thanks!!! however, inserting new data is not the only thing i want to do. i also want to modify some data of the model. so what i really want is to ask the view to redraw a particular row after i update the data of that row. what is the best way to do that? (for the record, i also use the model similar to what Aaron posted above, as i also reused the SimpleTreeModel demo) thanks again for all of your generous help. this community is amazing! best, Jun _______________________________________________ PySide mailing list PySide@lists.pyside.org http://lists.pyside.org/listinfo/pyside