Data passing in c++ to qml on different switch case
In that c++ side, i have different switch cases . Each switch cased process some operation, finally i have string data at the end. In that qml side i have five textfiled, each textfield display the c++ case data. My question is how to connect switch case data to qml textfield. I need some tips for that.
@eswar Several ways. But one of them is to find the child items (in your case
TextField) and then use
setPropertywhere the property would be
textand the value will be your switch case data.
You should take a look at the Integrating C++ and QML chapter of Qt's documentation. It describes several technique to do that.