[QGIS-Developer] Disabling some fields in a QgsAttributeDialog
Tejas L
tejvan at live.com
Fri Jan 3 14:23:28 PST 2020
Hi Tim,
It has to be done programmatically, via a plug-in. The form fields which have to be remain disabled are known beforehand. The name and types of the remaining activated fields are not known beforehand. So I cannot use the drag and drop UI.
Would be happy to hear of way around this.
Best regards,
Tej
________________________________
From: Tim Sutton <tim at kartoza.com>
Sent: Friday, January 3, 2020 9:27 PM
To: Tejas L <tejvan at live.com>
Cc: QGIS Developer <qgis-developer at lists.osgeo.org>
Subject: Re: [QGIS-Developer] Disabling some fields in a QgsAttributeDialog
Hi
Why not use the QGIS drag and drop form designer? It takes care of exactly this kind of use case. See chapter 3 in my tutorial here:
https://tinyurl.com/QGISFieldMapping
Regards
Tim
On 3 Jan 2020, at 14:57, Tejas L <tejvan at live.com<mailto:tejvan at live.com>> wrote:
Hello Devs,
I would like to present a custom dialog when a feature is clicled. The dialog must look and behave like QgsAttributeDialog except that two specific fields must be disabled (or hidden).
How could I programatically disable (or hide) certain fields in the QgsAttributeDialog?
Best regards,
Tej
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer at lists.osgeo.org<mailto: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
—
[cid:1A5DF6DE-E302-4C28-BFBD-29663CBF1351]
Tim Sutton
Co-founder: Kartoza
Ex Project chair: QGIS.org<http://QGIS.org>
Visit http://kartoza.com<http://kartoza.com/> to find out about open source:
Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services
Skype: timlinux
IRC: timlinux on #qgis at freenode.net<http://freenode.net>
I'd love to connect. Here's my calendar link<https://calendly.com/timlinux> to make finding time easy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200103/3e5ef0f7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaNewLogoThumbnail.jpg
Type: image/jpeg
Size: 6122 bytes
Desc: KartozaNewLogoThumbnail.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200103/3e5ef0f7/attachment-0001.jpg>
More information about the QGIS-Developer
mailing list