Thx for your answer, i am very new to c++ and qt and i dont know better, for instance i learned that there was a stack and a heap yesterday. To the problem. I was passing an int to the thread and then just using it like this in the constructor:

Qt Code:
  1. thread_id = core;
To copy to clipboard, switch view to plain text mode 

while running calculations in a worker the id would change, so i figured i was doing something wrong i've just been trying different approches and this is the one i came up with that worked. Would you care to point me in the right direction?

thx again!