Qt 6.11 is out! See what's new in the release
blog
Expose multiple context objects to QML
Mobile and Embedded
2
Posts
1
Posters
728
Views
1
Watching
-
Is there a way to expose multiple context objects from CPP to QML?
I know I can expose one with setContextProperty( "Obj1", obj1 )
Can I "addAnotherContextProperty"? -
Or the proper way to do it is to aggregate multiple objects into one "master" and expose it?
Well, on the second thought, I can register a new qml type...