[PyQt] Pointer Attribute

Jay L. jlaura at asu.edu
Tue Oct 25 14:32:12 BST 2016


Unfortunately, the sip error is non-specific.  It looks like what I
actually need to use is %GetCode and %SetCode.

Thanks!

On Tue, Oct 25, 2016 at 12:56 AM, Phil Thompson <phil at riverbankcomputing.com
> wrote:

> On 24 Oct 2016, at 11:25 pm, Jay L. <jlaura at asu.edu> wrote:
> >
> > I have a class with an attribute that is a pointer:
> >
> > public:
> >   SiftPoint *h_data
> >
> > I can write %MethodCode to expose a custom 'get_h_data()' method,  How
> should I expose the attribute directly, e.g. my_py_class.h_data,
> >
> > I tried %MappedType, but am getting sip errors...
>
> ...then fix the sip errors.
>
> Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20161025/a9a03b63/attachment.html>


More information about the PyQt mailing list