Skip to content
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

JuliaVariantMap/QVariantMap to expose complex objects. #109

Open
green-nsk opened this issue Mar 1, 2021 · 0 comments
Open

JuliaVariantMap/QVariantMap to expose complex objects. #109

green-nsk opened this issue Mar 1, 2021 · 0 comments

Comments

@green-nsk
Copy link

When exposing context properties via JuliaPropertyMap I find it a little limiting that there's basically only one level of indirection available. I.e. you can't make complex Julia objects to be available inside JuliaPropertyMap, only simple types like int/string/array(of simple types).

Looking at how JuliaPropertyMap/QQmlPropertyMap is implemented, it doesn't seem hard to build a component with behaviour similar to QVariantMap that we can allocate in Julia and expose to Qt world. I thought I ask here before trying to give it a go as I'm not very familiar with QML.jl inner workings.

If that component is made available we can basically expose an arbitrary Julia object to QML (with obvious limitations in performance and need for allocations, but yet).

Please let me know if that sounds reasonable, and I might give it a go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants