EditWidget
Table of Contents
Classes
- CheckBoxConfig
- QGIS Vector layer edit widget CheckBox config
<editWidget type="CheckBox">
<config>
<Option type="Map">
<Option value="1" type="QString" name="CheckedState"/>
<Option value="0" type="QString" name="UncheckedState"/>
</Option>
</config>
</editWidget>.
- DateTimeConfig
- QGIS Vector layer edit widget DateTime config
<editWidget type="DateTime">
<config>
<Option type="Map">
<Option value="false" type="bool" name="allow_null"/>
<Option value="false" type="bool" name="calendar_popup"/>
<Option value="" type="QString" name="display_format"/>
<Option value="yyyy-MM-dd" type="QString" name="field_format"/>
<Option value="false" type="bool" name="field_iso_format"/>
</Option>
</config>
</editWidget>.
- ExternalResourceConfig
- QGIS Vector layer edit widget ExternalResource config
<editWidget type="ExternalResource">
<config>
<Option type="Map">
<Option value="1" type="QString" name="DocumentViewer"/>
<Option value="400" type="QString" name="DocumentViewerHeight"/>
<Option value="400" type="QString" name="DocumentViewerWidth"/>
<Option value="1" type="QString" name="FileWidget"/>
<Option value="1" type="QString" name="FileWidgetButton"/>
<Option value="Images (*.gif *.jpeg *.jpg *.png)" type="QString" name="FileWidgetFilter"/>
<Option value="0" type="QString" name="StorageMode"/>
</Option>
</config>
</editWidget>.
- RangeConfig
- QGIS Vector layer edit widget Range config
<editWidget type="Range">
<config>
<Option type="Map">
<Option name="AllowNull" type="bool" value="true"></Option>
<Option name="Max" type="int" value="2147483647"></Option>
<Option name="Min" type="int" value="-2147483648"></Option>
<Option name="Precision" type="int" value="0"></Option>
<Option name="Step" type="int" value="1"></Option>
<Option name="Style" type="QString" value="SpinBox"></Option>
</Option>
</config>
</editWidget>.
- RelationReferenceConfig
- QGIS Vector layer edit widget RelationReference config
<editWidget type="RelationReference">
<config>
<Option type="Map">
<Option type="bool" value="false" name="AllowAddFeatures"/>
<Option type="bool" value="true" name="AllowNULL"/>
<Option type="bool" value="false" name="MapIdentification"/>
<Option type="bool" value="false" name="OrderByValue"/>
<Option type="bool" value="false" name="ReadOnly"/>
<Option type="QString" value="service=lizmap sslmode=disable key=\'fid\' checkPrimaryKeyUnicity=\'0\' table="lizmap_data"."risque"" name="ReferencedLayerDataSource"/>
<Option type="QString" value="risque_66cb8d43_86b7_4583_9217_f7ead54463c3" name="ReferencedLayerId"/>
<Option type="QString" value="risque" name="ReferencedLayerName"/>
<Option type="QString" value="postgres" name="ReferencedLayerProviderKey"/>
<Option type="QString" value="tab_demand_risque_risque_66c_risque" name="Relation"/>
<Option type="bool" value="false" name="ShowForm"/>
<Option type="bool" value="true" name="ShowOpenFormButton"/>
</Option>
</config>
</editWidget>.
- TextEditConfig
- QGIS Vector layer edit widget TextEdit config
<editWidget type="TextEdit">
<config>
<Option type="Map">
<Option value="0" type="QString" name="IsMultiline"/>
<Option value="0" type="QString" name="UseHtml"/>
</Option>
</config>
</editWidget>.
- UniqueValuesConfig
- QGIS Vector layer edit widget UniqueValues config
<editWidget type="UniqueValues">
<config>
<Option type="Map">
<Option value="1" type="QString" name="Editable"/>
</Option>
</config>
</editWidget>.
- ValueMapConfig
- QGIS Vector layer edit widget ValueMap config
<editWidget type="ValueMap">
<config>
<Option type="Map">
<Option type="Map" name="map">
<Option value="A" type="QString" name="Zone A"/>
<Option value="B" type="QString" name="Zone B"/>
<Option value="{2839923C-8B7D-419E-B84B-CA2FE9B80EC7}" type="QString" name="No Zone"/>
</Option>
</Option>
</config>
</editWidget>.
- ValueRelationConfig
- QGIS Vector layer edit widget ValueRelation config
<editWidget type="ValueRelation">
<config>
<Option type="Map">
<Option value="0" type="QString" name="AllowMulti"/>
<Option value="1" type="QString" name="AllowNull"/>
<Option value="" type="QString" name="FilterExpression"/>
<Option value="osm_id" type="QString" name="Key"/>
<Option value="tramway20150328114206278" type="QString" name="Layer"/>
<Option value="1" type="QString" name="OrderByValue"/>
<Option value="0" type="QString" name="UseCompleter"/>
<Option value="test" type="QString" name="Value"/>
</Option>
</config>
</editWidget>.