On Sat, 18 Sep 2010 10:55:21 +0200, James Meyer <[email protected]> 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 _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
