[PyKDE] sip, was: newest Version

Phil Thompson phil at riverbankcomputing.co.uk
Sat Nov 1 00:27:01 GMT 2003


On Friday 31 October 2003 9:49 pm, Roland Schulz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hey,
>
> trying to change the sip layer makes great advancement. Overwriting the
> className function already makes the Preview working!! Overwriting
> metaObject also makes signals, slots and propterties (partly) working!!
> So I think this will work.

How have you "overwritten" the className function?

> What I did for className is that I added to sipqtQWidget.h:
> virtual const char *className() const {return "FileChooser";}
> How should I do this in qwidget.sip? How can I get the classname (of course
> harding it is only for testing)? Calling className from Python space gives
> the correct result, so this should be doable. How can I access variables
> defined in the Python claass? Is there a way to tell sip to add this
> className method to all classes?

Use the /AutoGen/ option to automatically generate methods, but I'm not 
convinced this is going to help. Remind me how Designer calls the factory 
function to create the widget.

Phil




More information about the PyQt mailing list