Table of Contents

Interface IEditable

Namespace
Qt.Bridge.Models
Assembly
Qt.Bridge.CSharp.Api.dll

Provides editing support for a custom model item.

public interface IEditable

Remarks

Implement IEditable on a custom item type used by ListModel<T> or TableModel<T> when an item should participate in in-place editing through the built-in edit role.

This is useful when the editable form is different from the displayed form. For example, an item might display a friendly label but expose a raw string or DateTime value for editing.

Properties

EditValue

Gets or sets the value exposed through the built-in edit role.

object EditValue { get; set; }

Property Value

object

IsEditable

Gets whether the item can currently be edited.

bool IsEditable { get; }

Property Value

bool