Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with a dynamic c++ model #6

Open
oKcerG opened this issue Jul 15, 2021 · 0 comments
Open

Usage with a dynamic c++ model #6

oKcerG opened this issue Jul 15, 2021 · 0 comments

Comments

@oKcerG
Copy link

oKcerG commented Jul 15, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant