views:

26

answers:

1

The QFuture is iterating over a bidirectional iterator, which I assume is the root of the problem. However, the docs say that QFutureWatcher::progressValue "returns a value between progressMinimum and progressMaximum". I am calling QtConcurrent::filtered like this: QtConcurrent::filtered(myMap.begin(), myMap.end(), filterFn).

Does anyone have any idea on what is going wrong?

A: 

I don't know if this applies in your case but if you are getting your QFuture from QtConcurrent::run() the QFuture that is returned from that function does not support canceling, pausing, or progress reporting.

Arnold Spence
I'm not using `QtConcurrent::run`, but that's a good point. I'll update my question.
mos