<font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">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. </font>
<br>
<br><font size=2 face="sans-serif">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.</font>
<br>
<br><font size=2 face="sans-serif">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++?</font>
<br>
<br><font size=2 face="sans-serif">Freundliche Grüße aus Leipzig<br>
Susann Schmidt<br>
Softwareentwicklung <br>
<br>
**************************************************************<br>
<br>
GFI - Gesellschaft für Informationstechnologie mbH<br>
Philipp-Rosenthal-Straße 9<br>
D-04103 Leipzig<br>
Geschäftsführer: Andreas Richter<br>
Amtsgericht Leipzig HRB 12054<br>
USt.-IdNr.: DE179049354     Steuer-Nr.: 231/109/06412<br>
Tel. 0341 961 3310    Fax 0341 961 3311   Mail info@gfi-gis.de<br>
Web  </font><a href="www.gfi-gis.de"><font size=2 face="sans-serif">www.gfi-gis.de</font></a><font size=2 face="sans-serif"><br>
</font>