[Solved] Passing QML object to C++ function
-
Hi,
I'm discovering QML, and i try to pass a QML object to a C++ function of another one. I have read that http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html but i haven't found my answer.
From now i've tried that
plugin_test_plugin.h => http://pastebin.com/xdjBzquw
plugin_test_plugin.cpp => http://pastebin.com/L7kTi7tb
and here an example of use http://pastebin.com/5zhbzLAUIn my c++ function i never get the same pointer and this never is a pointer to my QML object.
Here what i get :
@A: 14328816
B: 14358136
A: 3998072
A: 14328816
B: 14358136
A: 14433544
A: 14328816
B: 14358136
A: 3998088 @A is supose to have allways the same value.
Thanks in advance!