It worked. Thank you very much people. I created the Qthread in .h file and iniciated it in .cpp file.