Subclassing QSqlTableModel insert new value
问题 I want to show SQL data from a local db-File in a QML-Tableview and than would like to do some edits to the sql-database. What I managed to do after about three weeks: Showing my data in a QML-Tableview. I am not sure if I really need to subclass QSqlTableModel and I definitly would be glad if subclassing would not be neccessary at all. In my main.cpp following should create my model and directly add a record. // Create an instance of the SqlModel for accessing the data SqlDataModel *sqlModel