[PyKDE] sip, was: newest Version

Roland Schulz mail at r2s2.de
Sat Nov 1 09:39:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

On Saturday 01 November 2003 00:25, you wrote:
> 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?
Adding it to sipqtQWidget.h by hand. See the attached file.

> > 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. 
What does this /AutoGen/ function?

> Remind me how Designer calls the factory
> function to create the widget.
designer creates an object PyQWidgetPlugin from the library and calls the 
create method. Create uses pythonize to call the createWidget method in the 
Python class. 

regards
Roland
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/o3DcV/hlvQgMogsRAqdfAJ43N3o73mCX519p96IPWW0LjNOZ3ACglqgD
+f7RPf+rck6iQSBg3q99t0Y=
=/8/h
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sipqtQWidget.h
Type: text/x-chdr
Size: 17339 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20031101/eb9039a1/sipqtQWidget.bin


More information about the PyQt mailing list