Setting sortingEnabled to true for gamesView and playerView before inserting data renders the program unusable on netbooks.
When connecting to IGS i.e. the program doesn't react for about 20 seconds and uses 100% CPU over here.
Qt4.7 states:
In order to avoid performance issues, it is recommended that sorting is enabled after inserting the items into the tree. Alternatively, you could also insert the items into a list before inserting the items into the tree.
/usr/share/qt4/html/qtreeview.html#sortingEnabled-prop
So this is a structural bug and I don't know how to fix this best.
Maybe one should introduce another buffer to store ListEntries while the server still transmits and add the buffer afterwards to the view...
Anonymous
Yeah, actually its worse than this. If you try to use the friends or watch list, it just crashes with qt 4.7. Qt's listview implementation is total garbage and I've rewritten that list code trying to get something decent out of it at least 5 times. And with 4.7, I just haven't had time to try and fix it.
Whatever nonsense they did in qt 4.7 was fixed in 4.8, so at least it doesn't crash anymore, but it still doesn't work so great.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I have rewritten the list model in a way that resolves the performance issues for me. This, along with some other changes, can be found here:
https://github.com/pzorin/qgo