Do something when a property changed?
QML and Qt Quick
2
Posts
2
Posters
3.0k
Views
1
Watching
-
wrote on 4 Mar 2012, 08:23 last edited by
I want to do something when a specific property of a QML object changed.
For example:
I have a QML TextEdit. I want to deselect() when its focus property changes from true to false.
How could I do it? -
wrote on 4 Mar 2012, 12:29 last edited by
"QML Signal and Handler Event System":http://qt-project.org/doc/qt-4.8/qmlevents.html
[quote]Further, each QML properties have a <property_name>Changed signal and its corresponding on<property_name>Changed signal handler. As a result, property changes may notify other components for any changes.[/quote]
1/2