[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: QList<const Type*> no working anymore in SIP 6
From:       Julien Cabieces <julien.cabieces () oslandia ! com>
Date:       2023-04-05 14:04:01
Message-ID: 871qkymnlc.fsf () julien-laptop ! home
[Download RAW message or body]


> On 03/04/2023 13:42, Julien Cabieces wrote:
>> 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?
>
> Works fine for me.  Which SIP and PyQt6 versions?
>
> Phil

SIP 6.7.8.dev2304031718
PyQt 6.4.0

Regards,
Julien

-- 

Julien Cabieces
Senior Developer at Oslandia
julien.cabieces@oslandia.com
09.72.52.52.76
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic