Refactor Request
addContextProperty function is used to expose C++ Objects to QML.
As stated in the documentation of addContextProperty it has some drawbacks, like limiting the reusability.
Description of the proposed solution
Investigate how addContextProperty is used and check if there are other solutions.
Maybe the connected C++ classes via the mainlogic, like SaveFileHandler, Renderer and ItemHandler should be exposed as QML Objects and be used directly in QML? This would break the lib structure, but perhaps this is the right way to go here.
Additional context
No other context.
Refactor Request
addContextProperty function is used to expose C++ Objects to QML.
As stated in the documentation of addContextProperty it has some drawbacks, like limiting the reusability.
Description of the proposed solution
Investigate how addContextProperty is used and check if there are other solutions.
Maybe the connected C++ classes via the mainlogic, like SaveFileHandler, Renderer and ItemHandler should be exposed as QML Objects and be used directly in QML? This would break the lib structure, but perhaps this is the right way to go here.
Additional context
No other context.