Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.2
-
None
-
4fbcb6a531bf424a8dbbbd0ca2947d9e15118885
Description
If you create a binding to ListView.count the value is not updated correctly.
If model is set to ListView before the delegate (which seems to be the normal case) ListView returns 0 (zero) for the count. Only after the delegate is set count returns the correct value. Unfortunately countChanged signal seems to be missing from QDeclarativeListView::setDelegate.
QDeclarativeVisualDataModel::setDelegate emits countChanged signal, but ListView is not listening to these signals at all (which seems a bit strange to me).
A simple test app attached.