Unsolved QML TableView Add New Row
-
Hi friends,
I am new to QML. I just started the Qt platform. I'm dealing with TableView. How can I add a new row to a generated table later?
Regards. -
@rmzngulcan
Table View uses Model-View-Delegate paradigm.- Model storages the data
- Delegate says how the data must be showed to final user.
- View is the container
Read More:
http://doc.qt.io/qt-5/model-view-programming.html
http://doc.qt.io/qt-5/qml-qtquick-controls-tableview.html#details
http://doc.qt.io/qt-5/qml-qtqml-models-listmodel.html#append-methodFor add a new line, you just need to add a new data on model and it will update the view :)