Skip to content

Usage with a dynamic c++ model #6

Description

@oKcerG

Hello,

I see that you can populate the grid with those function:

  • fillFromArray (for js array of array, representing cells)
  • fillFromQuery (for Db query)
  • fillFromJson (for js array of js objects)
  • fillFromListModel (for a ListModel)

but it appears that even for the last one it makes a static copy of the elements of the model.

I would like to be able to specify a model (QAbstractListModel, or QAbstractTableModel) and the grid be updated when rows are inserted/removed or data changed. Like the classical model/view pattern of Qt.

Is that not possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions