Hi Everyone,

I have a QtSql.QSqlRelationalTableModel and a tableView. I can insertRows just fine. If the index is not valid though a blank row is added to the view, but not the model. How do you prevent adding a row to the model if no row is added to the database? This happens when the user does not specify a value. How can you validate that the user has specified a value before adding another row. I was looking at dataChanged, but was not sure how to use this. blankrow.jpg