我用来QtConcurrent::blockingMapped()
在多个线程上执行单个参数列表上的函数。真的很棒!
但是我想做同样的事情来调用需要多个参数的函数,即:
// prototype:
static void openAndProcess(QString FileName, QImage &image);
这是我的数据:
QList<QString> fileList;
QList<QImage> qImageList;
而且我想使用上述两种方法来执行QtConcurrent::blockingMapped()
我的功能......openAndProcess()
QList
我该怎么做?
提前致谢!