sajmplus
6th December 2015, 14:59
What is a proper way to operate on QSqlDatabase asynchronously?
I know method with Worker class and QObject::moveToThread function, but in case when I work with QSqlTableModel i think it could be hard to use.
How can I insert/update/remove from QSqlTableModel asynchronously? Is there any signals when data transfer (model->database and database->model) which I can use to inform user that operation is in progress (e.g. open progress dialog when start executing and close on complete, use message box if error).
I know method with Worker class and QObject::moveToThread function, but in case when I work with QSqlTableModel i think it could be hard to use.
How can I insert/update/remove from QSqlTableModel asynchronously? Is there any signals when data transfer (model->database and database->model) which I can use to inform user that operation is in progress (e.g. open progress dialog when start executing and close on complete, use message box if error).