Are you sure you need a separate thread?

http://www.qtcentre.org/forum/f-qt-p...cket-4242.html