2

I have a abstractListModel implemented that regularly calls dataCanged() to update a list. In the listmodel I have a variable that I want to display outside of the listview, but also want it to be updated when the listmodel is updated. Is there a way to emit dataChanged on elements displayed outside the listview?

Thanks, Kyle

kmdent
  • 1,577
  • 16
  • 32

1 Answers1

1

QML properties have implicitely signals (onChanged) out of the box that can be used for such cases. See the examples here:

http://doc.qt.io/archives/qt-4.7/qdeclarativeintroduction.html#property-change-notifications

Christophe Weis
  • 2,518
  • 4
  • 28
  • 32
Marco
  • 2,190
  • 15
  • 22