-
Notifications
You must be signed in to change notification settings - Fork 35
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
Updating a TableView #54
Comments
Hi, Currently, it is only possible to manipulate the ListModel from QML. The dynamiclist example shows how to do this, the relevant code is here: Changing the That said, maybe it's not a bad idea to provide a Julia interface to modify the |
Thanks for your fast answer!
Agreed! In my case, the model needs to be updated by database/Julia and not by the QML UX. I am thinking about destroying the model and building a new one, however I don't know the best way to do this... do I need to destroy the entire window and construct a new tableview from the ground or there is a way to switch the model and perform some sort of "refresh" in the tableview/window? |
If you can use the master version of CxxWrap.jl and QML.jl then you can use the ListModel Julia interface I just added, indexing operations, |
Awesome! However, for some reason I am getting "UndefVarError(:push_back)" on push! to the ListModel.
While the qml code stays the same. I got the error on calls to append_enrolee() |
With any luck (if you're not on Windows) this should be fixed with a |
ouch, I forgot the build (luckily I'm on a Mac). |
Hi there, I am learning to use the TableView.
I am already able to load a QML table view with data from a julia array.
What I don't understand is how to push! an element to the julia array and then update/refresh the QML table view.
My qml and julia codes:
The text was updated successfully, but these errors were encountered: