QList<const Type*> no working anymore in SIP 6
Julien Cabieces
julien.cabieces at oslandia.com
Mon Apr 3 13:42:06 BST 2023
Hi,
I get this error :
sip_analysispart10.cpp:593:26: error: no matching constructor for initialization of 'QList< ::QgsRasterCalcNode *>'
sipRes = new QList< ::QgsRasterCalcNode*>(sipCpp->findNodes(a0));
^ ~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qcontainerfwd.h:25:29: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'QList<const QgsRasterCalcNode *>' to 'const QList<QgsRasterCalcNode *>' for 1st argument
...
for the following sip definition
QList<const QgsRasterCalcNode *> findNodes( const QgsRasterCalcNode::Type type ) const;
The SIP generated cpp code miss the const keyword
sipRes = new QList< ::QgsRasterCalcNode*>(sipCpp->findNodes(a0));
It was working with SIP 4.19.25 and no longer works with SIP 6.
Is this an issue or am I missing something?
Regards,
Julien
--
Julien Cabieces
Senior Developer at Oslandia
julien.cabieces at oslandia.com
09.72.52.52.76
More information about the PyQt
mailing list