Originally posted by Znurre
View Post
Maybe core was a bad naming on my part. What I meant is that part of the application that is always there versus the bits that are instantiated through QML.
This first, fixed, part is what I referred to as the core. This part should not need to know about anything that the QML engine could potentially have instantiated, especially not any UI types.
Otherwise I need different code paths in there, potentially using #ifdefs, etc.
Of course that will not always be possible, but it is a goal which needs very good reasons to abandon.
Originally posted by Znurre
View Post
As a third alternative for the animation example, what about binding to the animation's "running" property?
Originally posted by Znurre
View Post
But my experience with two frameworks that do both C++ and QML instantiation (Cascades and QtWidgets) is that I tend to fall back to C++ out of laziness, because doing it properly would have required a cleaner separation and slightly more upfront work but of course advantageous in the long run.
Cheers,
_
Comment