Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Itemviews: Performance with large selections



  • Hi guys,

    I've got some major performance issues when selecting a large number of rows (some hundred) in a treeview. It surprises me as otherwise the performance is really stunning. Selections take a long time and scrolling using the scrollbar is really slow.

    Is this a known issue? Are there any workarounds / best practices?

    Cheers,

    Jan

    P.S.: For selections that are triggered by the code (not user) I can think of workarounds like marking/coloring the rows via the model, but native selections would be most familiar for the users.



  • What platform are you running on ?
    If you are on Linux/Mac OS X you should try to run a profiler such as Valgrind to figure out where your application is spending cycles and figure out what your bottleneck is.


Log in to reply