[Qgis-developer] SIP 4.18 and ConvertToSubClassCode

Sandro Mani manisandro at gmail.com
Wed May 11 06:59:21 PDT 2016


Hi Matthias

Ah, forgot to specify: this is with the latest qgis master:

c.composition().getComposerItemById("Text")
<qgis._core.QgsComposerItem object at 0x7f83eb945808>

Best
Sandro

On 11.05.2016 15:53, Matthias Kuhn wrote:
> Hi Sandro,
>
> Just to be sure, did you also try with the non-closed upstream QGIS code?
>
> Matthias
>
> On 05/11/2016 03:33 PM, Sandro Mani wrote:
>> Hi
>>
>> Fedora has updated to SIP 4.18, and I'm now seeing some issues with
>> subclass conversions, in particular
>>
>> composerView.composition().getComposerItemById("aQgsComposerLabel")
>>
>> does not anymore return a QgsComposerLabel instance, but rather a
>> QgsComposerItem instance.
>>
>> Does anyone familiar with SIP know how to debug this? I've tried
>> playing around with the ConvertToSubClassCode code in
>> qgscomposeritem.sip, in particular changing sipClass with sipType
>> (having read that the former is deprecated [1]), but no improvements.
>> I actually don't even see that code executing by setting a breakpoint
>> in sip_corepart0.cpp.
>>
>> So, any ideas?
>>
>> Thanks
>>
>> Sandro
>>
>>
>>
>> [1] https://riverbankcomputing.com/pipermail/pyqt/2010-June/026759.html
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160511/7e0e8e88/attachment.html>


More information about the Qgis-developer mailing list