我如何创建几个线程在队列与Qt? [英] How can i create several thread in a queue with Qt?
本文介绍了我如何创建几个线程在队列与Qt?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请给我一个代码示例?如何创建一个Qt队列中的线程,一步一步执行?
解决方案
查看 QThreadPool 。
但是,正如弗兰克指出的,如果你彼此之间执行的东西,就不需要线程。 / p>
How can I create threads in a queue with Qt that execute step by step (when one thread completed another thread started)?
Please give me a code example?
解决方案
Look at QThreadPool.
However, as Frank pointed out, if you execute things after each other, there is no need for threads.
这篇关于我如何创建几个线程在队列与Qt?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文