Hello,
I am using a QSqlTableModel and would like to have the following behaviour. If a user tries modify a record, we lock the record and if it was already locked (i. e. the lock fails) we issue an error message and prevent the user to edit the occurence.
I could to it the hard way by trying to detect when the user starts editing a field and do a SELECT fOR UPDATE NOWAIT at that moment but it seems messy and I assume there must be a natural way to do so in Qt.
So what would be the right way to do that in Qt?
Thanks!


Reply With Quote


Answering your own posts leads to that too - i.e. I read mostly these threads that haven't been replied.
Bookmarks