[Qgis-developer] SIP API Update

Matthias Kuhn matthias.kuhn at gmx.ch
Thu May 30 02:10:54 PDT 2013


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



More information about the Qgis-developer mailing list