-
Notifications
You must be signed in to change notification settings - Fork 36
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
Using multiple JuliaCanvas'es #102
Comments
I have added an example for this here: https://github.com/barche/QML.jl/blob/master/example/canvas_twice.jl You should use a separate callback function for each canvas. |
Hello
|
You can use any QML component that takes a listmodel, and store the parameters for the canvas in a ListModel. The gltriangle example is also based on this, it uses a |
I tried to do that, but each JuliaCanvas must have its own paintFunction. I couldn't manage to create callback functions in a loop. safe_cfunction macro claims, that paint_canvas is not defined. My code Julia code is something like that.
|
You need to add a |
OK, updating CxxWrap to version v0.11.2 and adding the paint_canvas_wrapped = @safe_cfunction($paint_canvas, Cvoid, (Array{UInt32,1}, Int32, Int32)) See the |
Is there a way to have multiple JuliaCanvas'es displaying different content? It seems that if I update one of them, then others also get updated.
The text was updated successfully, but these errors were encountered: