PDA

View Full Version : Running my app in the background



srohit24
22nd May 2009, 17:35
Hi

I have built a app that needs to contact a usb device.

It takes about 20-25 seconds to read 8000 bytes from the device. While the app is doing its work, the comp just freezes.

I want to know if there is a way to stop this freeze? can i run the app in background while its reading the data from the device?

I all need to add a progress bar to the app, which can show the approximate time remaining, can anybody suggest me as to how i can accomplish it?

thanks.

brcain
22nd May 2009, 20:32
Can you post sample code?

What resources are you possibly blocking?

Are you allowing your application thread loop to sleep?

faldzip
22nd May 2009, 23:15
read this: http://doc.trolltech.com/qq/qq27-responsive-guis.html