[PyQt] how can i wrapp template method by SIP

Phil Thompson phil at riverbankcomputing.com
Sun Oct 25 12:21:40 GMT 2015


On 25 Oct 2015, at 12:09 p.m., hadi M <hm.qtprogrammer at gmail.com> wrote:
> 
> Hello to evryboy
> 
> I have class with one template method in it, my question is how can I wrap this class method by sip??
> 
> Class myclass{
> 
> Template <typename  T>  T* myMethod();
> 
> };

You can't.

If you can identify a useful subset of T then you can hand code wrappers for those (or pass the type as an argument to a single wrapper).

Phil


More information about the PyQt mailing list