PDA

View Full Version : Getting a Q_INVOKABLE C++ memeber function reevaluated bythe QML engine



mut
10th August 2017, 05:53
Hello

I'm exposing some C++ member functions to my QML files by making them Q_INVOKABLE.

How to get a Q_INVOKABLE C++ function reevaluated by the QML engine?

JS functions inside QML are reevalueded but not C++ ones.

In QML: MyJSFuncion(MyParameter)

Will be reevaluetd if MyParameter changes

Thanks

Mut

Added after 1 3 minutes:

Adding some precision about reevalaution:

In QML: My_Exposed_CCObject.My_CCP_Funcion(MyParameter)
In JS: My_Exposed_CCObject.My_CCP_Funcion(MyParameter)

Thanks

Mut.

high_flyer
10th August 2017, 11:56
Will be reevaluetd if MyParameter changes
What do you mean exactly? Property binding?