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 <[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 > <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.
_______________________________________________ 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
