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

QML ListView does not handle layoutChanged

    XMLWordPrintable

Details

    • 4bc81bb1cb3cd4a0a3fe071e00556124e770d7ac, 08df2a17f4f0ed9b5ce69ad91e3849260acda092, ff10e44642d65b2dde50579c4994aa9def43f4c0

    Description

      QML ListView does not handle layoutChanged. That means that if a QSortFilterProxyModel is used in a qml scene, the items get very messed up.

      I looked at the code, and indeed the signal is not handled.

      The attached app demostrates the issue but does not use QSortFilterProxyModel for simplicity.

      After the contents change, the contents in the QML scene do not change. Then, if the contents are flicked up or down the items appear duplicated. Any app which uses QSortFilterProxyModel will be affected by this.

      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)
            steveire Stephen Kelly (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes