一、说明
void QtConcurrent::blockingFilter(Sequence &sequence, KeepFunctor filterFunction)
Calls filterFunction once for each item in sequence. If filterFunction returns true, the item is kept in sequence; otherwise, the item is removed from sequence.
Note: This function will block until all items in the sequence have been processed.
二、代码
QList<int> sequence{
1, 10, 3, 5, 6,