PDA

View Full Version : currentRowChanged Signal slow when calling some functions



aguayro
18th October 2012, 03:07
Hi, i'm trying to code a frontend, i have a game list, when currentRowChanged singal is activated, i do some screenshots/boxart/ searchs with QDirIterator, but this makes QListView very slow to change row.
Is there any way to speed it up?
if i keep the down key pressed, the selection freezes, until i release the key.
Maybe QDirIterator + file by file search is not a good way to do this...
Hope anybody can help me a little, thanks and sorry for bothering you

wysota
18th October 2012, 08:39
Hi, i'm trying to code a frontend, i have a game list, when currentRowChanged singal is activated, i do some screenshots/boxart/ searchs with QDirIterator, but this makes QListView very slow to change row.
Is there any way to speed it up?
You can delay the search some small amount of time (e.g. 100ms) using a timer. This way only when the user stops changing the current item, the search will begin.

aguayro
18th October 2012, 14:31
Thanks a lot wysota, one more time, your answers are very helpful! :)
I really apreciate every time you helped me!!