[PyKDE] Model-View application: view not updated

Andreas Pakulat apaku at gmx.de
Fri Dec 15 16:23:19 GMT 2006

On 15.12.06 16:17:21, Sibylle Koczian wrote:
> The problem is with the cancel button: the changed records are only
> changed back after the window lost focus - the view isn't updated
> directly after clicking the button. It _is_ updated after changing the
> spin box value - but only if it's a real change, not after changing and
> changing back again to the old value. I can't understand this, because
> in both cases the same method is called.

Hmm, I don't think I follow your description. BTW: Did you look at the
ready-made models for accessing SQL databases in Qt4?

> I've reduced the problem to a smaller application with a small global
> list in place of the database - the offending behaviour stays the same.
> But it's still 153 lines of code. Should I post it or is the description
> sufficient?

153 loc is not really large, please post it.


Never give an inch!

More information about the PyQt mailing list