-
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
some more details on use of setindex! in ListModels #35
Comments
The problem here is that the standard addrole(nuclidesModel, year, n -> round(n.values[i],2), (n, newval, row) -> n[row].values[i] = newval)
|
Seems to work. I will test later more to see if it fits all. Thanks for you quick response. It would be a great example for further use of ListModels in ListView and TableView. At least i will make an example for your repo, if this would be fine for you. |
Sure, more examples are always welcome, feel free to also improve the readme if it lacks clarity. |
In 0.8 ListModel were removed. |
With interest i read your explainations in https://github.com/barche/QML.jl#listmodel and to change data in a ListModel from QML itself. This is exactly what i need for a new feature for my own code.
For editing a TableView i use code from stackoverflow which works fine (see here). This returns (with no surprise)
Null setter for role "2016", not changing value
because it is only readable.Like in your example I added
setindex!
toaddrole
(see here and here)
But obviously i miss something, because this results in a segfault
The text was updated successfully, but these errors were encountered: