[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] [SIP] SIP_PYCALLABLE in constructor
From: Sandro Mani <manisandro () gmail ! com>
Date: 2019-10-31 10:24:38
Message-ID: c6568c6d-d3e9-39df-1e18-da22f0dacc18 () gmail ! com
[Download RAW message or body]
On 31.10.19 11:13, Phil Thompson wrote:
> On 31/10/2019 09:22, Sandro Mani wrote:
>> Hi
>>
>> I'm trying to create bindings for a class Foo with a constructor
>> taking a std::function, so basically for
>>
>> typedef std::function<Item*()> ItemFactory;
>> Foo( ItemFactory factory, QObject* parent = 0 );
>>
>> in the sip file I'm writing
>>
>> Foo( SIP_PYCALLABLE factory, QObject *parent = 0 );
>
> You haven't told SIP what the C++ signature is. You need to do this
> for ctors, virtuals and protected methods. Something like...
>
> Foo(SIP_PYCALLABLE factory, QObject *parent = 0) [(ItemFactory,
> QObject *)];
>
Many thanks!
Sandro
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic