Starting move to QtConcurrent for threading

Template starting.
Switch done

However, program becomes non responsive… There is a problem here.
Merge branch 'threading'