[PyKDE] QColorGroup

Phil Thompson phil at river-bank.demon.co.uk
Mon Jan 17 20:21:56 GMT 2000


Johannes Sixt wrote:
> 
> a remedy for this situation would be that sipMapCppToSelf looks at the
> requested type even if it finds already a Python object for the pointer. Then
> it could wrap up the pointer a second time (for situations like the above where
> the new type is unrelated to the old type) or it could "upgrade" (or
> "downcast") the wrapper object to a derived class if the new class is derived
> from the existing type. The latter would help in situations like the one that I
> reported long ago under the subject "QScrollView.viewport() wrapped up with
> wrong type".

This is what I implemented in the patch - but I didn't do the
upgrade/downcast. Can you give me a concrete example of where it would
be needed - or remond me of the QScrollView.viewport() problem?

Thanks,
Phil




More information about the PyQt mailing list