<div dir="ltr">Crash should be fixed now.<div><br></div><div style>- Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 31, 2013 at 1:17 AM, Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com" target="_blank">madmanwoo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey all,<br>
<br>
There is currently a issue in the new sip branch with calling<br>
QgsMapLayerRegistry.instance().mapLayers() making QGIS crash. I know<br>
where the issue is and will try to fix it ASAP.<br>
<br>
If anyone knows sip and can lend a hand that would be great. The crash<br>
is in conversions.sip QMap<TYPE, TYPE*>.<br>
<br>
Sent from some fancy phone looking thingo<br>
From: Matthias Kuhn<br>
Sent: 30/05/2013 7:10 PM<br>
To: Sandro Santilli<br>
Cc: <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>; Nathan Woodrow<br>
Subject: Re: [Qgis-developer] SIP API Update<br>
<div class="im HOEnZb">On Don 30 Mai 2013 11:04:18 CEST, Sandro Santilli wrote:<br>
</div><div class="im HOEnZb">> On Thu, May 30, 2013 at 04:12:15PM +1000, Nathan Woodrow wrote:<br>
><br>
>> If you are not aware of what benefits the SIP API update will bring here is<br>
>> a quick example:<br>
>><br>
>> Before:<br>
>><br>
>>>>> str(yourlineedit.text().toString())<br>
>> 'Hello World'<br>
>>>>> feature["column"].toInt()[0]<br>
>> 100<br>
>><br>
>> After<br>
>><br>
>>>>> yourlineedit.text()<br>
>> 'Hello World'<br>
>>>>> feature["column"]<br>
>> 1000<br>
>><br>
>> It will make life for us and plugin authors a hell of a lot easier.<br>
><br>
> Plugin authors want to maintain support for multiple qgis versions,<br>
> so changing an API is really only _more_ work, not _less_.<br>
><br>
> Is there any facility to deal with that ?<br>
<br>
</div><div class="HOEnZb"><div class="h5">There is this link from Marco Bernasocchi:<br>
<br>
<a href="http://spyder-ide.blogspot.ch/2011/06/pyqt-api-1-pyqt-api-2-and-pyside.html" target="_blank">http://spyder-ide.blogspot.ch/2011/06/pyqt-api-1-pyqt-api-2-and-pyside.html</a><br>
<br>
This abstraction layer along with another one for the vector layer API<br>
changes would make a nice little help for developers targetting<br>
multiple versions.<br>
<br>
Matthias<br>
</div></div></blockquote></div><br></div>