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

Connection C++ QML [SOLVED]

$
0
0
Note that it is still possible to access and control QML from C++, again through the meta system, but consider this to be “last resort” and most certainly not recommended practice. QML will handle all data pretty well, provided of course you have registered those type to the meta system. I’d say it is even safe to use raw pointers through QML with properties and methods – something most people will probably advise against for being unsafe, but hey, pointers are unsafe in C++ too :) I actually work on a project that passes around C++ pointers between components instantiated in QML and it works flawlessly.

Viewing all articles
Browse latest Browse all 4972

Trending Articles