How to bind C++ property to QML property?
问题 So I know how to bind QML property to C++ property, so when C++ one calls notify signal, QML updates the view. Is there any way to make C++ property update when user changes something using UI? For example, I have a Combobox, and I want some C++ property to be updated when user changes value of combobox. EDIT: By C++ properties I mean Q_PROPERTY macro in QObject -derived classes. 回答1: To bind a property from an object you didn't create in QML (or was created in another context), you have to