Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Access dynamic created ListModel elements from C++!

$
0
0
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. I know the purpose of UI and logic abstraction! And i try to do that! Based on that pupose I need a code example to imagine it by myself how I can do that. At the moment I don’t know how I can solve my situation described above. Please give me an example how I can call a JS function of “Rect2.qml” from C++. That’s typical the logic layer is changing somewhat and the UI has to show it.

Viewing all articles
Browse latest Browse all 4972

Trending Articles