void MainWindow::on_pushButton_clicked()
{
QFuture<int> future = QtConcurrent::run(identify); //Thread1
if (future.isFinished())
{
//DoSomething();
}
}
Run Code Online (Sandbox Code Playgroud)
我有这个代码.我想DoSomething()在识别功能运行完毕后运行该功能.可能吗?