It is a counter-productive thing to access QML from C++. It defeats the whole purpose of UI and logic abstraction. The idea is to be able to access C++ functionality from C++ but not the other way around. Even though it is possible to like… get a pointer to a specific QML element you should not get in the practice of reaching from C++ into the QML world.
↧