Use QThreadPool for threading