Obsolete Members for QThreadPool

以下成员源于类 QThreadPool 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) void cancel (QRunnable * runnable )

成员函数文档编制

void QThreadPool:: cancel ( QRunnable * runnable )

移除指定 runnable from the queue if it is not yet started. The runnables for which runnable->autoDelete() 返回 true 被删除。

该函数在 Qt 5.5 引入。

另请参阅 start () 和 tryTake ().