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

Container: Item moves are not always detected/propagated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.10.1
    • Quick: Controls 2
    • None
    • MSVC 2015, Win 7SP1
       

    Description

      When working with Container.contentModel to display items, using something like an Instantiator or an intermediate model (eg. DelegateModel) doesn't properly sort the children when items are moved (eg. when using Container.insertItem(index, item) with index < Container.count). 

      Or in other words, using eg. Repeater or ListView to display the Container.contentModel directly works properly (items are sorted correctly), like in the doc examples and in all the current Container-derived Controls.  But if you assign the Container.contentModel to a DelegateModel, then use the delegate model in the Repeater/ListView, the children are only sorted in the order they were added (or inserted), regardless of which order they're actually in.  Moving of items doesn't seem to be properly detected.

      Same thing happens if using an Instantiator to create items, instead of a Repeater, even when the Intantiator model is set directly to Container.contentModel (no intermediate model).

      Thank you,
      -Max
       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mpaperno Maxim Paperno
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes