Nominate our 2022 Qt Champions!

Clear ListView cachebuffer/memory managment

  • Hi,
    In my app I have central ListView.
    As a matter of performance, cacheBuffer increases with contentItemChildrenRect.height. so it make use of RAM increasing when loading many children.
    But it never decreases, when contentItemChildrenRect.height decreases.
    So when listview loads a smaller dataset after a big one, RAM usage is never decreasing and stay high.
    Maybe it's bug, I don't know.

    It's a problem since 99% of the time in my app, childrenRect.height will be low with low RAM usage but if only one time childrenRect.height is big, then the app will keep high memory usage until it closes.

    Thanks for help


Log in to reply