Re: [PyQt] QList Specialization Class SIP Error

2010-10-18 Thread Phil Thompson
On Sun, 17 Oct 2010 23:15:37 +0200, James Meyer jam...@lantic.net wrote: Hi Thanks for the reply. Sorry to be a pain, but I'm quite new to SIP. How exactly would I implement this as a mapped type? Do I only need to specify the %ConvertToTypeCode and %ConvertFromTypeCode directives similar

Re: [PyQt] QList Specialization Class SIP Error

2010-10-17 Thread Phil Thompson
On Sat, 16 Oct 2010 19:40:02 +0200, James Meyer jam...@lantic.net wrote: Hi I have a C++ class that extends QList, or more specifically QListPoint where Point is one of our custom classes. SIP gives me a syntax error as soon as I add the template parameter to the inheritance. In C++:

Re: [PyQt] QList Specialization Class SIP Error

2010-10-17 Thread Phil Thompson
On Sun, 17 Oct 2010 21:07:55 +0100, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 16 Oct 2010 19:40:02 +0200, James Meyer jam...@lantic.net wrote: Hi I have a C++ class that extends QList, or more specifically QListPoint where Point is one of our custom classes. SIP gives me a

Re: [PyQt] QList Specialization Class SIP Error

2010-10-17 Thread James Meyer
Hi Thanks for the reply. Sorry to be a pain, but I'm quite new to SIP. How exactly would I implement this as a mapped type? Do I only need to specify the %ConvertToTypeCode and %ConvertFromTypeCode directives similar to QList itself. Will I reference QList at all in the mapped type

[PyQt] QList Specialization Class SIP Error

2010-10-16 Thread James Meyer
Hi I have a C++ class that extends QList, or more specifically QListPoint where Point is one of our custom classes. SIP gives me a syntax error as soon as I add the template parameter to the inheritance. In C++: class PointList : public QListPoint { ... }; In SIP: class PointList :