JuliaGraphics / QML.jl

Build Qt6 QML interfaces for Julia programs.
Other
386 stars 35 forks source link

Screen -> MakieScreen (abstract type) #193

Open asinghvi17 opened 9 months ago

barche commented 9 months ago

Is this all it takes to support the latest Makie? If so, that would be great news :)

marcom commented 6 months ago

I tried this patch, and the tests for QML.jl pass.

Unfortunately, the Makie examples from https://github.com/barche/QmlJuliaExamples don't seem to work. I tried opengl/makie.jl and opengl/makie-plot.jl, both failed with this error message:

MethodError: no method matching GLMakie.GLAbstraction.ShaderCache()

Closest candidates are:
  GLMakie.GLAbstraction.ShaderCache(::Any, ::Dict{String, Vector{String}}, ::Dict{String, Dict{Any, GLMakie.GLAbstraction.Shader}}, ::Dict{Any, GLMakie.GLAbstraction.GLProgram})
   @ GLMakie ~/.julia/packages/GLMakie/Wvj4h/src/GLAbstraction/GLShader.jl:90
  GLMakie.GLAbstraction.ShaderCache(::Any, ::Any, ::Any, ::Any)
   @ GLMakie ~/.julia/packages/GLMakie/Wvj4h/src/GLAbstraction/GLShader.jl:90
  GLMakie.GLAbstraction.ShaderCache(::Any)
   @ GLMakie ~/.julia/packages/GLMakie/Wvj4h/src/GLAbstraction/GLShader.jl:97