Hello jacek and Everyone,
I found the solution.
I removed the threads and used signals/slots and its working .
thanks again