Update QTableView in QML from C++
-
wrote on 21 Jan 2012, 16:33 last edited by
Hello everybody...
I want to use a QTableView in QML and i did it!!! But there is something! I want to update table in C++ every second. how can i do that? I means every second a row should be added to the table.
Thanks guys -
wrote on 21 Jan 2012, 19:04 last edited by
That depends on how you implemented the model. If it is a C++ model you use, just insert the row and emit the recommended signals.
-
wrote on 22 Jan 2012, 03:01 last edited by
beginInsertRows/endInsertRows in your model will do the job
-
wrote on 22 Jan 2012, 06:03 last edited by
I have a standardItemModel. Here is my concern: I have a ListProperty in my class and if i update the list and then the model and emit property signal, will table be updated?!
1/4