I am facing a problem while developing my program. I have a QAbstractListModel which contain a boole property, and I want to be able to pass that value to my QML file containing a CheckBox.
I found this question on StackOverflow covering the same problem. I am facing the exact same problem but the question and answer cover the case where the property is sent to the qml through a Q_PROPERTY whereas I use a QAbstractListmodel. I have overridden the setData(), data() and flags() methods and all works fine but I have a button that check/uncheck all my CheckBoxes and if the user directly check one of them that one will not be editable through my check/uncheck button.
So basically, I want to know how to set up a bi-directional binding using a QAbstractListModel instead of a Q_PROPERTY.
Thank you.