PDA

View Full Version : GUI + QThread Errors



chatarpal
5th February 2009, 09:37
Hello,
I have created GUI with lots of widget. OnClick of run button i am executing some tasks which takes few minutes to complete. I am running these tasks in background by re-implementing QThread class, so that i can do some changes in GUI like open other widget, change position of dock widgets etc. But after fews changes in GUI i am getting following Error in Linux:

Xlib: sequence lost (0x4aa19 > 0x3aa23) in reply type 0x8!
Xlib: unexpected async reply (sequence 0x3abe3)!

Can you please suggest which is the best way to re-implement QThread class?

^NyAw^
5th February 2009, 09:57
Hi,

It's not safe to change the GUI on another thread different from main thread(also called GUI thread). So you will have to perform data operation and send(with SIGNAL SLOTs mechanism) what to to with the GUI to the main thread.

There are a lot of posts talking about same problems.