[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Troubleshooting QDataWidgetMapper.submit failure
From:       alan moore <me () alandmoore ! com>
Date:       2019-02-12 22:29:54
Message-ID: 06409050-5023-77db-be61-546ddccb9561 () alandmoore ! com
[Download RAW message or body]

On 2/12/19 2:29 AM, Barry wrote:
> 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
>
I was using SQLite in this case.  It turns out the error wasn't SQL at 
all, I had a select() call happening on the model after it was shown in 
the form, so the mapper's currentIndex() was reset to -1.  Once I 
eliminated that, things worked fine.

Situations like this highlight my one major gripe about Qt: the way it 
so often silently fails instead of throwing exceptions. Guess that's 
just a C++ thing?


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic