QWidget: Cannot create a QWidget when no GUI is being used

i used your simDisp class and then i implemet my own thread.

i got this error. do you know what's the problem?