[PyKDE] QtDesigner - simpler proxy

Roland Schulz mail at r2s2.de
Sun Nov 2 12:38:01 GMT 2003

Hash: SHA1


On Sunday 02 November 2003 09:02, Jim Bublitz wrote:
> It appears I've been thinking about doing proxying the hard way -
> there's a much simpler way (really more a wrapper than a proxy):
This is a really cool idea. Even though we could still think about adding it 
to PyQt when everything works this could work very good until it works and 
will be much better for testing. Cool! ;-)

> I haven't played around with this much yet, but it seems to work
> just fine. The one thing that needs to be done is that the
> Python widget needs to provide size hints so that the proxy
> widget can size itself properly - the "FileChooser" widget isn't
> very pretty in QtDesigner without those, but it seems to work.
This can be done by overwriting minimumSIze, maximumSize, minimumSizeHint, 
sizeHint (and -width, -height), passing the function onto the proxyed Python 
object, right?
The only open question is than, if connected signals and slots in the preview 
can be made working and if setting properties will work. But to test this the 
metaobject has to work in the first place.
Could you send me the your current version. Even better would be to put it up 
on cvs. In case you do my sf username is: rolandschulz (ID: 269060), so you 
can give me cvs write access.


Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)


More information about the PyQt mailing list