[Qgis-developer] deprecated methods
Worth Lutz
wal3 at mindspring.com
Thu May 5 12:14:58 PDT 2016
Yes, I'm still using setEditorWidgetV2() in my plugin because of v2.8
being in use. I was just trying to determine what minimum version would
be necessary to start using editFormConfig().
Looking at your links, I think I see part of my problem. Google is
taking me to:
https://qgis.org/api/classQgsVectorLayer.html
Note no version number after "/api/".
This page is also 'green' not 'blue' like the pages you referenced. I
wondered about that color change. :-)
Thanks for confirming that the "added in" note should exist. Those help
in setting the minimum required QGIS version for plugins.
*Worth Lutz*
On 5/5/2016 2:57 PM, Jürgen E. Fischer wrote:
> Hi Worth,
>
> On Thu, 05. May 2016 at 12:57:10 -0400, Worth Lutz wrote:
>> When trying to convert to the suggested new methods, they seem to
>> not be available.
>>
>> for example: Q_DECL_DEPRECATED void QgsVectorLayer::setEditorWidgetV2
>> suggests "Use editFormConfig()->setWidgetType() instead".
>> The method, "editFormConfig", does not seem to be available in QGIS
>> v2.8 on my Ubuntu machine.
> setEditorWidgetV2 is not deprecated in 2.8 [0] it deprecated in 2.14 [1] and
> there editFormConfig() is available [2]. There should be a "added in" note -
> but that's apparently missing for editFormConfig().
>
>
> Jürgen
>
>
> [0] http://qgis.org/api/2.8/classQgsVectorLayer.html#a05a33f4d4f9953571f680f6b18589559
> [1] http://qgis.org/api/2.14/classQgsVectorLayer.html#a3ead0bb00ccad05b556a0602f48350bf
> [2] http://qgis.org/api/2.14/classQgsVectorLayer.html#ae89009b6dc6f544d19123a2f311acfe4
>
>
>
>
> _______________________________________________
> 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/20160505/d0a751cc/attachment.html>
More information about the Qgis-developer
mailing list