QSqlTableModel::insertRow() via QTableView
chronix last edited by
I have a QTableView which uses QSqlTableModel as its model. I can use the insertRow() function from the QSqlTableModel and take input via separate dialog, but I want the user to insert into the TableView directly, like if the user presses the add button a new blank row appears in the QTableView and the user and enter the data in the blank row and after user's done the inserted data is updated into the database.
Thanks in advance. :)