I am implementing some threaded task with QtConcurrent framework, specifically mapped() function.
I have some questions regarding the lifetime of various data used: Say I have the following code: QList<MyData> myList; ... // code to connect myFutureWatcher to slots .... auto future = QtConcurrent::mapped(myList, myMapFunction); myFutureWatcher.setFuture(future); Does mapped() make a copy of myList? Or do I have to make sure it lasts until future.isFinished()? Also, is it OK for future to go out of scope? Or do I once again have to keep it alive until it's all finished? Thanks _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest