[PyQt] syntax for converting C++ class template function to sip?

Phil Thompson phil at riverbankcomputing.com
Thu Sep 30 22:17:11 BST 2010


On Thu, 30 Sep 2010 12:06:58 -0700, Qin Shen <jeanshen at tippett.com> wrote:
> I have template functions inside a non-template class.
> 
>     template <typename T>
>     List(const T &value);
> 
>     template <typename T>
>     List &append(const T &value);
> 
> I copied them over to a sip file without changing their syntax. SIP 
> complains about the
> syntax error. I couldn't seem to find any related info from the SIP 
> reference guide.
> Is there anything specific I have to do to make it work?

Look at PyQt's qlist.sip file.

Phil


More information about the PyQt mailing list