[QGIS-Developer] no default value in style.qml
SSchmidt at gfi-gis.de
SSchmidt at gfi-gis.de
Fri May 26 03:56:32 PDT 2023
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 info at gfi-gis.de
Web www.gfi-gis.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230526/3e56206a/attachment.htm>
More information about the QGIS-Developer
mailing list