[PyQt] QLinkedList sip unsupported function return type error

James Meyer jamesm at lantic.net
Sat Sep 18 09:55:21 BST 2010


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.

Thanks

James




More information about the PyQt mailing list