Not a very good approach IMHO.
I think it is a lot better if the application C++ code does not know anything about QML managed elements.
Instead of passing a QML created object to C++ and connecting signals that might or might not be there, the C++ code should rather provide slots and functions that the QML created code can invoke.
That way you can easily restructure or replace the UI with the core knowing or caring.
Cheers,
_






Reply With Quote
Bookmarks