[PyQt] QStandardItemEditorCreator missing

Hans-Peter Jansen hpj at urpla.net
Thu Nov 25 22:29:28 GMT 2010


On Thursday 25 November 2010, 22:24:02 Baz Walter wrote:
> On 25/11/10 17:23, Hans-Peter Jansen wrote:
> > Unfortunately, it's still not behaving right: the color chooser is
> > created and shown correctly on double click, one can choose another
> > value, but that isn't supplied back into the table correctly,
> > although the property getter _is_ called and given the new value.
> >
> > What am I missing?
>
> i posted a working example of this about a year ago:
>
> http://www.riverbankcomputing.com/pipermail/pyqt/2009-October/024866.
>html
>
> i'm absolutely certain it worked correctly at the time, but it now
> seems to have the same problem yours has.
>
> for some reason, the findData method in ColorListEditor.setColor is
> failing to find the QVariant.Color in the list (it always returns
> -1). 

Baz, it's funny, how similar our implementations are..

This time, I will insist on adding it to the examples. That way, such an 
issue wouldn't have slipped through for longer periods of time, and I 
wouldn't had done the same work again.

Pete


More information about the PyQt mailing list