[PyQt] Troubleshooting QDataWidgetMapper.submit failure

Barry barry at barrys-emacs.org
Tue Feb 12 08:29:21 GMT 2019



> On 11 Feb 2019, at 22:40, alan moore <me at alandmoore.com> wrote:
> 
> I have a form that is connected to a QSqlRelationalTableModel using QDataWidgetMapper.  When I call the mapper's submit() method to save the data, it returns false.  Calling lastError() on the model returns a 'no error' code, so I'm at a loss as to why my form fails to save data.
> 
> Is there somewhere else I can look for a possible error?

Can you use the logs on the sql server?
At least to postgesql i have had it log the queries it receives and errorsin the past.

Barry

> 
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list