Do you use one of the editable sql models (QSqlTableModel or its subclass)? If so, you should be able to do it directly through the model.
Do you use one of the editable sql models (QSqlTableModel or its subclass)? If so, you should be able to do it directly through the model.
Howdy Wysota. Yeah I could have done that, but I implemented my own listmodel that derives from the abstract list model class. I was just wondering where the best place to put my sql statement would be. Of course it works right now, but in terms of the model/view architecture I'm not sure where the "proper" place would be to place the insert.
Just wondering![]()
IMO in submit(), setData() or insertRow().
Bookmarks