这个跟 qt 的 signal/slot 的事件循环和 QueuedConnection 有关。
现代 qt 编程,别去管这事了。统一用 QtConcurrent 吧。
我虽然知道是怎么回事,但解释起来不会比官方文档简单。
而且我从学 Qt 到现在,基本上没直接用过 QThread.
【 在 zhanghaoX (环顾四方有效) 的大作中提到: 】
: 【It is important to remember that a QThread instance lives in the old thread that instantiated it, not in the new thread that calls run(). This means that all of QThread's queued slots and invoked methods will execute in the old thread】. Thus, a de
: 括号里这句是指两种模型都是这样?还是特指第二种模型?
: Unlike queued slots or invoked methods, 【methods called directly on the QThread object will execute in the thread that calls the method. 】When subclassing QThread, keep in mind that the constructor executes in the old thread while run() executes in
: ...................
--
修改:hgoldfish FROM 112.47.122.*
FROM 112.47.122.*