[PyQt] property support?

Phil Thompson phil at riverbankcomputing.co.uk
Fri Aug 17 17:21:50 BST 2007


On Friday 17 August 2007, Diez B. Roggisch wrote:
> Hi,
>
> is there any existing or planned property-support? I've got a class that
> essentially looks like this:
>
> class Foo {
> public:
>     SomeType Name[Size];
> };
>
>
> So the Name-property is part of the public API. I'd like to access that
> using
>
> foo_instance.Name
>
> instead of introducing a getter/setter-pair. Any suggestions?

http://www.riverbankcomputing.com/Docs/sip4/sipref.html#getcode

Phil


More information about the PyQt mailing list