Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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