actually it is sampleThread only
actually it is sampleThread only
may be i was not clear for u .
it is
In the code you have posted, you use just "Thread", not "sampleThread".
i changed the posted code to sampleThread and tried to build but i am getting the same error.
You have a loop in your includes - mainwindow.h includes sampleThread.h which again includes mainwindow.h. Use a forward declaration in mainwindow.h instead of including sampleThread.h or don't include mainwindow.h in the other file.
Bookmarks