Solved Data passing in c++ to qml on different switch case
-
Hi
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 usesetProperty
where the property would betext
and the value will be your switch case data. -
Hi,
You should take a look at the Integrating C++ and QML chapter of Qt's documentation. It describes several technique to do that.
-