Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Windows specific question about parallel_for
RickF last edited by
I'm using concurrency::parallel_for loops (window specific) which are convenient to loop over large three dimensional data sets. I not sure how to best give the main thread time so I can update a QProgressbar....
The data is in a std::vector.
Do you start the calculations in a second thread?
If not I would move the calculations into a separate thread and emit signals from there to tell the main thread what the current progress is. In this case the main thread should not be blocked.