[QGIS-Developer] Disabling some fields in a QgsAttributeDialog

Tim Sutton tim at kartoza.com
Fri Jan 3 07:57:18 PST 2020


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 <https://tinyurl.com/QGISFieldMapping>

Regards

Tim

> On 3 Jan 2020, at 14:57, Tejas L <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 <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
—









Tim Sutton

Co-founder: Kartoza
Ex Project chair: 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

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/e7e75d93/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaNewLogoThumbnail.jpg
Type: image/jpeg
Size: 6122 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200103/e7e75d93/attachment-0001.jpg>


More information about the QGIS-Developer mailing list