[PyQt] pyuic expects certain property methods in Designer plugins

Arve Knudsen arve.knudsen at gmail.com
Mon Oct 8 21:21:11 BST 2007


On 10/8/07, Phil Thompson <phil at riverbankcomputing.co.uk> wrote:
>
> On Monday 08 October 2007, Arve Knudsen wrote:
> > What's the meaning of the stdset attribute? It turns out that for the
> > properties of my own custom widget Designer does not specify the stdset
> > attribute (not quite sure why), and if stdset is missing or equals "1"
> > pyuic reverts to the old behaviour of guessing the setter method's name
> > (rather than using setProperty).
>
> It means that the name of the setter follows the Qt convention, ie. starts
> with "set". Designer should give the attribute a value of "0" in the .ui
> file
> if the 0x000000100 flag is clear in the property flags in the meta-object.
>
> If you look at the qtcore_qt_metaobject_worker() function in qobject.sipyou
> can see where it is checking the name of the setter and setting the flag
> appropriately.


OK, thanks for the explanation, Phil. I was able to find out what I did
wrong, it's working now :)

Arve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071008/036b3b65/attachment-0001.html


More information about the PyQt mailing list