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

List:       pykde
Subject:    Re: [PyKDE] sip, was: newest Version
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2003-10-31 23:25:46
[Download RAW message or body]

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

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

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