bppgrid icon indicating copy to clipboard operation
bppgrid copied to clipboard

Usage with a dynamic c++ model

Open oKcerG opened this issue 3 years ago • 0 comments

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?

oKcerG avatar Jul 15 '21 09:07 oKcerG