Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19037

ListView does not notify count changes properly

    XMLWordPrintable

Details

    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            skananoj Sami Kananoja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes