[Qgis-developer] QgsPluginLayer.writeStyle() must be overridden?

Minoru Akagi akaginch at gmail.com
Wed Jul 6 22:09:10 PDT 2016


Hi Nathan,

2016-07-07 14:03 GMT+09:00 Nathan Woodrow <madmanwoo at gmail.com>:
> Hi,
>
> What is the version you are running.  I think that was patched by Martin at
> one stage.

Revision is 6035f19. Trying to update the qgis-dev package.


Thanks,
Minoru

> On Thu, Jul 7, 2016 at 3:01 PM, Minoru Akagi <akaginch at gmail.com> wrote:
>>
>> Hi devs,
>>
>> I'm looking forward to the next wonderful release, and now testing
>> TileLayerPlugin with qgis-dev (OSGeo4W64), I sometimes encounter the
>> following error message while loading a project with a plugin layer.
>>
>> NotImplementedError: QgsPluginLayer.writeStyle() is abstract and must
>> be overridden
>>
>> According to the API doc [1], QgsMapLayer.writeStyle() has been added
>> in 2.16 and is reimplemented in QgsVectorLayer and QgsRasterLayer, but
>> does not seem to be reimplemented in QgsPluginLayer.
>>
>> Can QGIS core avoid raising this error? Or should all the subclasses
>> of QgsPluginLayer override writeStyle()?
>>
>> [1] https://qgis.org/api/classQgsMapLayer.html
>>
>> Regards,
>> Minoru


More information about the Qgis-developer mailing list