I tried to pass a value inserted in textField in a C++ float variable.
The following code is a representation of what I need.
TextField{id:textField1}
Button{onClicked:function.printFloat = textField1.text.toFloat}
but I received the following warning message:
qrc:/qml/window/WindowConfigTelemetry.qml:215: Error: Cannot assign QString to float
What is wrong in my code ?