Skip to content
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

all values depending on model roles are re-read on every model change #60

Closed
damianatorrpm opened this issue Mar 27, 2019 · 5 comments
Closed

Comments

@damianatorrpm
Copy link

damianatorrpm commented Mar 27, 2019

Model
role1
role2
role3

Label {
text: role1
}
Label {
text: role2
}
//role 1 changes, role 2 is re-evaluated as well
//with 0 filters/sorters

@oKcerG
Copy link
Owner

oKcerG commented Mar 28, 2019

Hello,

Thanks for filing this issue.
Can you share a minimal code example reproducing this problem?

Cheers

@damianatorrpm
Copy link
Author

Hello, thank you for acknowledging the issue and the plugin itself. I will be able to do so earliest tomorrow afternoon.

@damianatorrpm
Copy link
Author

https://ufile.io/w067h
this is the example based on official Qt example for qbstractitemmodel (animalmodel).

run and observe command line output when clicking the change button
please indicate that you confirm the issue

    SortFilterProxyModel
    {
        id: myProxyModel
        sourceModel: myModel
    }
    ListView
    {
        width: 200; height: 250

        model: myProxyModel //clicking button changeSize requests size and type multiple times
    //    model: myModel //clicking button changeSize requests size 1 time

@damianatorrpm
Copy link
Author

I decided to move away from SortFilterProxyModel qml plugin due to it being not (not really) maintained.
It is still very good for prototyping you QSortFilterProxyModel

Though valid, Feel free to close the bug

@damianatorrpm
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants