[PyQt] QLinkedList sip unsupported function return type error

Phil Thompson phil at riverbankcomputing.com
Sat Sep 18 18:40:02 BST 2010


On Sat, 18 Sep 2010 10:55:21 +0200, James Meyer <jamesm at lantic.net> wrote:
> Hi everyone
> 
> I have a method that returns a pointer to a QLinkedList<MyPoint>
> where MyPoint is a simple custom class.
> 
> the method signature in c++ is the following:
> ******************************************
> typedef QLinkedList<MyPoint> PointList;
> PointList* extractFeatures();
> ******************************************
> 
> In the .sip file, the code above is exactly the same. And I have an 
> %Import QtCore/QtCoremod.sip at the top
> 
> When I compile the code. SIP gives the following error:
> ************************************************************
> sip: MyClass::extractFeatures() unsupported function return type - 
> provide %MethodCode and a C++ signature
> ************************************************************
> Then I removed the typedef and placed the QLinkedList<MyPoint> directly 
> in the method signature, but this had the same result.
> 
> Why is this happening?
> 
> Previously I used just a normal QList instead of QLinkedList and it 
> worked fine.

PyQt doesn't support QLinkedList because Qt doesn't actually use it.

Phil


More information about the PyQt mailing list