Solved How to update QTableView when rows are inserted to it
-
On a side note, your rowCount implementation should rather return the size of your TableList, that way it's one less thing to manage.
-
@SGaist
Yes ,now i am returning the size of TableList . -
In
dropEvent
called a new function from model which stores all the parameter of item when droped and emitted layoutAboutToBeChanged() before appending to my TableList and then emitted layoutChanged() which worked for me.Thanks to @kshegunov , @SGaist , @mrjj for the help.