[QGIS-Developer] What are "Key/value" and "List" widgets in attributes form?
Patrick Valsecchi
patrick.valsecchi at camptocamp.com
Mon Apr 2 23:49:49 PDT 2018
Hi
Good analysis and sorry for my slow response.
The widgets are not directly tied to PG. They will work as long as the
providers support QVariant::List or QVariant::Map datatypes.
The spatialite provider supports QVariant::List, encoded as JSON:
https://github.com/qgis/QGIS/commit/6260f9dea5293ec082ffe7cfae3211e914021288
CU
On Thu, Mar 29, 2018 at 5:58 PM, DelazJ <delazj at gmail.com> wrote:
> Hi,
>
> Thanks Nyall. Indeed, these are PG provider tools. I dug a bit and found
> out that list is designed for array field type while key/value refers to
> hstore field type.
> Doc is updated (might be light but better than nothing imho).
>
> Harrissou
>
> 2018-03-24 1:18 GMT+01:00 Nyall Dawson <nyall.dawson at gmail.com>:
>
>> On 23 March 2018 at 00:07, DelazJ <delazj at gmail.com> wrote:
>> > Hi all,
>> >
>> > In the vector layer properties dialog, Attributes form tab, I fail to
>> > understand/find what enables those two widgets, hence what they are
>> supposed
>> > to do and how they could work.
>> >
>> > If someone has some information, thanks for sharing.
>> > Documenting this section is blocked by these information (see
>> > https://github.com/qgis/QGIS-Documentation/pull/2437/files)
>>
>> I suspect these are only available for list/map field types - which as
>> far as I'm aware are only available for the postgres provider.
>>
>> Nyall
>>
>> >
>> >
>> > Thanks,
>> > Harrissou
>> >
>> > _______________________________________________
>> > QGIS-Developer mailing list
>> > QGIS-Developer at lists.osgeo.org
>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180403/c44601ff/attachment-0001.html>
More information about the QGIS-Developer
mailing list