Important: Please read the Qt Code of Conduct -

QtConcurrent::map() doesn't emit progressValueChanged() signal with QMap.

  • Hello,

    With the code below, the finished() signal is emitted but progressValueChanged() isn't emitted.
    Is there a way to know when each item has been done?

    QMap<QString, int> items;
    // ... Fill items
    QFutureWatcher<void> watcher;
    watcher.setFuture(QtConcurrent::map(items, function));

  • Hi! I wonder what your map function (function in your code above) looks like because to me it seems that using QtConcurrent::map on a QMap isn't supported.

Log in to reply