How can i apply MVVM pattern in QtQuick applications?
Can anybody give me any sample (simple) code?
Thanks
With a C++ ViewModel
I know someone has done the same thing with a QML ViewModel and bi-directional binding for the text element for example.
Bi-directional binding is done through the binding of the text property to the viewmodel property. Then, add a Binding node to bind the viewmodel property to the text property of the textinput.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With