Qt 6.11 is out! See what's new in the release
blog
SetContextProperty for imported qml
QML and Qt Quick
2
Posts
2
Posters
2.4k
Views
1
Watching
-
I am importing qmlB into qmlA.
How can i get the contextPropertyObject to be used by qmlB? or any other qml that is nested inside qmlB?
Rectangle
{
width:100
height:100qmlB
{
//ContextObject
}}
@
-
Which context property? Can you post some more code please? If you use setContextProperty() function in C++ you can just use the name you assign to that property anywhere in your qml files.