Move Makie Support to QMLMakie#207
Conversation
|
Thanks, tried it out and it works beautifully. Some comments:
The last two points are of no infulence on this PR of course. |
Glad to hear :-)
Yeah, will do! I accidentally made the commit before i noticed the LSP had completely blown out the diff :-p
Agreed!
Oh yeah, nice catch. Thanks! |
606efd3 to
d048a0f
Compare
|
I ran JuliaFormatter on all the files in Also, if you have an opinion on style, we could add a JuliaFormatter config file to the project, so everyone is on the same page. As is, I just ran it with the default settings. |
|
Hi @steffenhaug. Was wondering if you're still pursuing this? Thinking about starting a project using QML.jl and running into issues with compat with GLMakie. Seems like this would fix the issue. |
|
Not really. I'm interested, but I hit some snags trying to get QMLMakie to support modern Makie versions, to the point where I could not justify the time investment on the clock, where I had a use case for it. Even though embedding GLMakie is not that complicated in principle (as demonstrated by the ImGui embedding, the code is quite short), I have not been able to get modern Makie versions to render anything from a callback in QML, and I'm also not exactly sure what the problem is. Makie is not designed to run in multithreaded contexts, and I suspect that it doesn't play nicely with Qt's runtime. I was hoping to get at least a proof of concept going before publishing anything, because publishing QMLMakie with a dependency on Makie |
|
Thank you for taking the time to respond - I understand |
How far did you get? In general, what is the furthest progress anyone has made in getting this to work: https://docs.makie.org/stable/explanations/backends/glmakie#embedding Eg, has anyone gotten an empty plot (window, screen, figure, idk the correct term here) to show up without error? |
|
Closing this because of the changes in #221, the new release #222 and JuliaGraphics/QMLMakie.jl#1 |
This is probably not quite ready for a merge, but I'm starting a PR so we have a place to discuss where to go from here, and for visibility in case someone wants to play around with it or help out.
This PR moves the Makie Support to a new package, QMLMakie, as suggested in the roadmap
and discussed in #206.
This has a number of benefits:
compatboundsGLMakiewhich breaksPackageCompiler.jlAs it is, I basically just copied the code from
makie_support.jlverbatim and made the necessary changes injlqmlto initialize Makie Support in a separateJlCxxmodule, so that can be wrapped byQMLMakie.jl. There is still a lot of work to do beforeQMLMakiecan be registered, but simple examples already work: