[PyQt] Syntax error for QVector iterator typedef
Camden Mannett
camden.mannett at gmail.com
Sat Jul 19 21:09:26 BST 2014
Hi all,
This tiny fragment triggers a SIP syntax error:
%Import QtCore/QtCoremod.sip
class Sy_audioFrame
{
%TypeHeaderCode
#include <global/Sy_audioFrame.h>
%End
public:
typedef QVector< float > Leg;
typedef QVector< Leg > Audio;
typedef QVector< Leg >::iterator iterator; // Error!
...
The rather unhelpful error message is:
sip: .../Sy_audioFrame.sip:21: syntax error
Can anyone suggest why SIP doesn't like that particular typedef
definition? I've tried fully qualifying the template argument but it
made no difference.
Thanks,
Cam
More information about the PyQt
mailing list