Qt: QTableView how to add a row?
25,881
As you use som YourModel to show it in YourTableView (QTableView) should do like this:
YourModel->insertRow(YourModel->rowCount(QModelIndex()));
// paste some data to new row
update of model causes update of View
Author by
Michael Zelensky
Javascript / Web-applications / Full-stack / Architecture
Updated on September 12, 2020Comments
-
Michael Zelensky almost 4 years
I have got a QTableView with data in it. What is the simplest way to add a row?
Thanks!