Skip to content

[REFACTOR] Check usage of addContextProperty #131

@codingwithmagga

Description

@codingwithmagga

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.

Metadata

Metadata

Labels

refactoringIt works, but the Code is at least suboptimal

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions