qgserde - v0.3.1
    Preparing search index...

    Interface QgsField

    Vector field display and input settings, excluding field values.

    interface QgsField {
        alias?: string;
        applyDefaultOnUpdate?: boolean;
        comment?: string;
        configurationFlags?: string;
        constraintDescription?: string;
        constraintExpression?: string;
        constraints?: number;
        defaultExpression?: string;
        duplicatePolicy?: string;
        editable?: boolean;
        editorWidgetConfig?: QgsVariant;
        editorWidgetType?: string;
        expressionStrength?: number;
        labelOnTop?: boolean;
        mergePolicy?: string;
        name: string;
        notNullStrength?: number;
        reuseLastValue?: boolean;
        reuseLastValuePolicy?: string;
        splitPolicy?: string;
        uniqueStrength?: number;
        unmodeled?: QgsUnmodeled;
    }
    Index
    alias?: string

    Display alias in QGIS.

    applyDefaultOnUpdate?: boolean

    Whether the default expression also applies on update.

    comment?: string

    Field comment set in QGIS, which replaces the provider's (<customComments>, QGIS 3.44+).

    configurationFlags?: string

    QGIS field configuration flags, such as NoFlag or HideFromWms.

    constraintDescription?: string

    Description shown when the constraint expression fails.

    constraintExpression?: string

    Constraint expression.

    constraints?: number

    Enabled constraints as a QGIS bit mask: 1 not null, 2 unique, 4 expression.

    defaultExpression?: string

    QGIS default-value expression. Stored as a string without evaluation.

    duplicatePolicy?: string

    Behavior when a feature is duplicated, such as Duplicate or UnsetField.

    editable?: boolean

    Whether the field can be edited in forms.

    editorWidgetConfig?: QgsVariant

    Editor widget settings, such as Min and Max for Range. Keys depend on the widget type.

    editorWidgetType?: string

    QGIS editor widget type, such as TextEdit or Range.

    expressionStrength?: number

    Expression constraint strength: 0 not set, 1 hard, 2 soft.

    labelOnTop?: boolean

    Whether the form label is placed above the widget.

    mergePolicy?: string

    Behavior when features are merged, such as UnsetField or Sum.

    name: string

    Field name in the data source.

    notNullStrength?: number

    Not-null constraint strength: 0 not set, 1 hard, 2 soft.

    reuseLastValue?: boolean

    Whether new features reuse the last entered value.

    reuseLastValuePolicy?: string

    Reuse-last-value policy, such as NotAllowed or AllowedDefaultOn.

    splitPolicy?: string

    Behavior when a feature is split, such as Duplicate or GeometryRatio.

    uniqueStrength?: number

    Unique constraint strength: 0 not set, 1 hard, 2 soft.

    unmodeled?: QgsUnmodeled

    Unmodeled XML of this field's records in layer-level containers, keyed like QgsMapLayerBase.unmodeled but without a record index, such as "aliases/alias". It follows the field through renames and reordering.