Hello,

I want to setup a formular for a vectorlayer. For a field(text or number) 
I want to have a default value. I assumed to achieve this with 
QgsEditorWidgetSetup. 

To learn how the notation should be, I tried to save an example in 
QGIS(3.16, 3.22.16, master) directly in a style.qml file. But there is no 
entry for a default value. If I load the style.qml to a new layer, QGIS 
doesn't show my default values.

So is this an error or? Or is it unmeant to save default values in a 
style? If so, how can I set a default value to a field in c++?

Freundliche Grüße aus Leipzig
Susann Schmidt
Softwareentwicklung 

**************************************************************

GFI - Gesellschaft für Informationstechnologie mbH
Philipp-Rosenthal-Straße 9
D-04103 Leipzig
Geschäftsführer: Andreas Richter
Amtsgericht Leipzig HRB 12054
USt.-IdNr.: DE179049354     Steuer-Nr.: 231/109/06412
Tel. 0341 961 3310    Fax 0341 961 3311   Mail i...@gfi-gis.de
Web  www.gfi-gis.de
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to