[Qgis-developer] SIP API Update

Nathan Woodrow madmanwoo at gmail.com
Thu May 30 16:23:44 PDT 2013


Crash should be fixed now.

- Nathan


On Fri, May 31, 2013 at 1:17 AM, Nathan Woodrow <madmanwoo at gmail.com> wrote:

> Hey all,
>
> There is currently a issue in the new sip branch with calling
> QgsMapLayerRegistry.instance().mapLayers() making QGIS crash. I know
> where the issue is and will try to fix it ASAP.
>
> If anyone knows sip and can lend a hand that would be great. The crash
> is in conversions.sip QMap<TYPE, TYPE*>.
>
> Sent from some fancy phone looking thingo
> From: Matthias Kuhn
> Sent: 30/05/2013 7:10 PM
> To: Sandro Santilli
> Cc: qgis-developer at lists.osgeo.org; Nathan Woodrow
> Subject: Re: [Qgis-developer] SIP API Update
> On Don 30 Mai 2013 11:04:18 CEST, Sandro Santilli wrote:
> > On Thu, May 30, 2013 at 04:12:15PM +1000, Nathan Woodrow wrote:
> >
> >> If you are not aware of what benefits the SIP API update will bring
> here is
> >> a quick example:
> >>
> >> Before:
> >>
> >>>>> str(yourlineedit.text().toString())
> >> 'Hello World'
> >>>>> feature["column"].toInt()[0]
> >> 100
> >>
> >> After
> >>
> >>>>> yourlineedit.text()
> >> 'Hello World'
> >>>>> feature["column"]
> >> 1000
> >>
> >> It will make life for us and plugin authors a hell of a lot easier.
> >
> > Plugin authors want to maintain support for multiple qgis versions,
> > so changing an API is really only _more_ work, not _less_.
> >
> > Is there any facility to deal with that ?
>
> There is this link from Marco Bernasocchi:
>
> http://spyder-ide.blogspot.ch/2011/06/pyqt-api-1-pyqt-api-2-and-pyside.html
>
> This abstraction layer along with another one for the vector layer API
> changes would make a nice little help for developers targetting
> multiple versions.
>
> Matthias
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130531/f893565e/attachment.html>


More information about the Qgis-developer mailing list