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 <[email protected]>
Sent: Friday, January 3, 2020 9:27 PM
To: Tejas L <[email protected]>
Cc: QGIS Developer <[email protected]>
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 <[email protected]<mailto:[email protected]>> 
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
[email protected]<mailto:[email protected]>
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.

_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to