PDA

View Full Version : QProxySortFilter on linux



elcuco
5th October 2007, 00:04
I am using a QProxySortFilter with a model that contains 22K items, and it is very slow on Linux (I had to use tircks to emulate speed, like using timers to produce callbacks a second after a key has been pressed and other tricks).

The deal is that on windows, I can filter on every key press and on Linux when a commuly used key is pressed the filtering takes more then half a second. The machine is the same, so it's not cpu/memory problem. Also the compiler is the same (gcc). Same for Qt version.

Can anyone share his experience with this?

wysota
5th October 2007, 10:11
What kind of model do you use?

elcuco
5th October 2007, 13:21
Self made, basically a very light wrapper to QList of my own struct. If you really want to see the code, it's available here: http://qt-apps.org/content/show.php/MiniAssistant?content=67392

I still don't understand how QtAssystant works that fast :)

wysota
5th October 2007, 15:41
I don't see anything suspicious in your code. What happens if you substitute your model with a QStringListModel with a similar number of elements? Is it still that slow?