PDA

View Full Version : Reducing CPU load to min. when Mouse Moves



arunvv
19th February 2008, 00:42
Hi all,

How to reduce CPU load to minimum when Mouse moves in Qt-4.2 Application?

Thanks & Regards,
Arun

jpn
19th February 2008, 06:35
Have you enabled mouse tracking? What actions do you take when mouse moves?

arunvv
19th February 2008, 17:23
I have a GUI design where it has some tabs and widgets. The widgets are used for just to display some calculated values.
I am not using any mouse events / mouse tracking.
But I can see that whenever I move mouse to click on some tab/widget the CPU load increases between 30-50%, otherwise it is quite normal within 5-7%. I am trying to reduce this CPU load to min. when mouse moves.
How can I reduce the CPU load to min. whenever mouse moves?

Thanks & Regards,
Arun

jpn
19th February 2008, 17:34
Try profiling your application to see where's the bottleneck.