06-27-2013 03:20 AM
I am call a function from App.cpp.In that function a QString variable value is set.I want this value in main.qml because depends on this string value I want to perform several task in main.qml. Please help me ....... Thanks in advance.
06-27-2013 02:51 PM
You can "export" the value from C++ to QML using QDeclarativePropertyMap or using a PROPERTY
06-29-2013 03:36 AM
Make that function Q_INVOKABLE like
define a function like:
Q_INVOKABLE QString getValue();
and then in the constructor of
07-01-2013 10:20 AM
I get the string value in qml from cpp.I just call a function of cpp file which is emit the signal to the qml.I am just use the qmlRegisterType.
Thanks every one....... for your feedback.........