Expose multiple context objects to QML



  • 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...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.