-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving items in ListModel source handled incorrectly #75
Comments
Hello, Unfortunately the issue is caused by the base class I'm afraid this can't be fixed easily. |
Have a nice day :)
The problem is, oKcerG did not have a chance to implement the case.
All events like *OnChanging. *beforeSOMETING, *afterSOMETHING – are not implemented yet.
You shaulh try it yourself... With my pleasure, // Ivan
From: miruka [mailto:notifications@github.com]
Sent: Friday, April 10, 2020 2:39 PM
To: oKcerG/SortFilterProxyModel
Cc: Subscribed
Subject: [oKcerG/SortFilterProxyModel] Moving items in ListModel source handled incorrectly (#75)
I'm using a ListModel as sourceModel, and I need to sort my model's data from my backend which calls ListModel.move(), so I want to use SortFilterProxyModel purely for filtering.
The SortFilterProxyModel gets reset whenever a movement happens, which causes all delegates to be constantly deleted-recreated and breaks any ListView.move transition... what causes this behavior?
<https://github.com/mirukana/sortfilterproxy-move-problem/blob/master/src/Window.qml> Here's a sample code that demonstrates the problem.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, <#75> view it on GitHub, or <https://github.com/notifications/unsubscribe-auth/ACB5ZUNWXOVHLH4TK7INKRTRL4AMRANCNFSM4MFMW53A> unsubscribe. <https://github.com/notifications/beacon/ACB5ZUJMY4W6NB5LY5G7U6DRL4AMRA5CNFSM4MFMW53KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4I5CMZHQ.gif>
|
Thanks for the answers. |
Hello. Beriozko Ivan is on contact…
Please, use this mailing-list for conversation, that works really good.
For orther cases, shaulth thau contact me via email, me shall be pleased to describe the case.
Luks.
From: miruka [mailto:notifications@github.com]
Sent: Friday, April 10, 2020 2:39 PMPle
To: oKcerG/SortFilterProxyModel
Cc: Subscribed
Subject: [oKcerG/SortFilterProxyModel] Moving items in ListModel source handled incorrectly (#75)
I'm using a ListModel as sourceModel, and I need to sort my model's data from my backend which calls ListModel.move(), so I want to use SortFilterProxyModel purely for filtering.
The SortFilterProxyModel gets reset whenever a movement happens, which causes all delegates to be constantly deleted-recreated and breaks any ListView.move transition... what causes this behavior?
Here <https://github.com/mirukana/sortfilterproxy-move-problem/blob/master/src/Window.qml> 's a sample code that demonstrates the problem.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#75> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACB5ZUNWXOVHLH4TK7INKRTRL4AMRANCNFSM4MFMW53A> . <https://github.com/notifications/beacon/ACB5ZUJMY4W6NB5LY5G7U6DRL4AMRA5CNFSM4MFMW53KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4I5CMZHQ.gif>
|
I'm using a
ListModel
assourceModel
, and I need to sort my model's data from my backend which callsListModel.move()
, so I want to useSortFilterProxyModel
purely for filtering.The
SortFilterProxyModel
gets reset whenever a movement happens, which causes all delegates to be constantly deleted-recreated and breaks anyListView.move
transition... what causes this behavior?Here's a sample code that demonstrates the problem.
The text was updated successfully, but these errors were encountered: