Get the value of QML Editbox from c++
-
I have created a QtQuick application with some textboxes in QML. I want to use the value of those textboxes in my c++ code. So how can i fetch those value from c++ code ?
-
I think that:
http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html
is what you are looking for. Read it carefully - the safer and recommended approach is to expose some C++ object to Qml and bind your "textbox" properties to it. This way you are able to handle "textbox" properties in C++ code.