I have a QT application in which i am calling a thread .
In the thread i am calling a function to update a lineEdit box dynamically based on certain conditions.

But the problem is that when i run the application for some time , it hangs showing error "xlib: unexpected async reply (sequence.......).

I searched for this error and found that i cannot update GUI from a thread.

But my application needs a thread and gui to be updated dynamically.

How can i do this.
???????

Regards

Raghvendra