tomf
13th July 2008, 20:13
Hi!
I tried QtConcurrent today to load and scale images for my QGraphicsView. My main goal was to load large images while keeping the gui responsive. Well...QtConcurrent works fine, but my gui is everything else but responsive. I checked already my code and there is no part in my gui thread which could use the cpu power (I already disabled showing the images, just scaling for now).
Now its great that QtConcurrent makes use of both of my cores, but still 100% cpu useage is too much. I need some % for my gui too. Is there a way to tell QtConcurrent to not use everything? Maybe some priority settings? I didn't find anything in the docs.
I tried QtConcurrent today to load and scale images for my QGraphicsView. My main goal was to load large images while keeping the gui responsive. Well...QtConcurrent works fine, but my gui is everything else but responsive. I checked already my code and there is no part in my gui thread which could use the cpu power (I already disabled showing the images, just scaling for now).
Now its great that QtConcurrent makes use of both of my cores, but still 100% cpu useage is too much. I need some % for my gui too. Is there a way to tell QtConcurrent to not use everything? Maybe some priority settings? I didn't find anything in the docs.