Preparing search index...

    Base class for custom item models implemented in plugin script; subclasses override rowCount, columnCount, data, headerData, flags, index, and roleNames to feed views like AbstractItemView.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isNull: boolean

    Whether the underlying native model object has been destroyed.

    onChanged: signal0<void>

    Signal fired when the model's overall layout or contents change.

    onDataChanged: signal3<ModelIndex, ModelIndex, number[], void>

    Signal fired when data in a contiguous range of cells changes, carrying the top-left and bottom-right indices and the affected roles.

    onModelReset: signal0<void>

    Signal fired when the model is reset and views must re-read all data.

    onRowsInserted: signal3<ModelIndex, number, number, void>

    Signal fired after rows have been inserted under a parent, carrying the parent index and the inserted row range.

    onRowsRemoved: signal3<ModelIndex, number, number, void>

    Signal fired after rows have been removed under a parent, carrying the parent index and the removed row range.

    Methods

    • Override that returns the number of columns under the given parent index.

      Parameters

      Returns number

    • Override that returns the value at the given index for the given role (for example display or decoration).

      Parameters

      Returns any

    • Override that returns the ItemFlag bitmask describing the cell's interactive capabilities.

      Parameters

      Returns number

    • Returns the name of this object's type.

      Returns string

    • Override that returns the header value for the given section, orientation, and role.

      Parameters

      Returns any

    • Override that constructs a ModelIndex for the cell at the given row and column under the given parent.

      Parameters

      Returns ModelIndex

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean

    • Override that returns the mapping from numeric role identifiers to role name strings used by views.

      Returns any

    • Override that returns the number of rows under the given parent index.

      Parameters

      Returns number