Unsolved Unable to change the qml property from c++
-
I seem to it is a difficult problem...
I wrote code based on this forum thread information,again,https://github.com/sazus/QtForum_topic_98263
Can you check the expected behavior of the software?
After that you confirm a difference in those and Let's solve this issue with everyone. -
An alternative would be to not do that, it's bad practice and not very maintainable.
Some links to coroborate my claim :- https://doc.qt.io/qt-5/qtquick-bestpractices.html#interacting-with-qml-from-c
- http://doc.qt.io/qt-5/qtqml-cppintegration-overview.html#interacting-with-qml-objects-from-c
- https://youtu.be/vzs5VPTf4QQ?t=23m20s
A proper alternative would be to set a QObject as a context property and expose properties in it.
-
Yes thankyou, i found a way. But not through qml but tried from two c++ files.