#include <QApplication>
#include <QtConcurrent/QtConcurrent>

int numTest(const int &num)
{
    QThread::msleep(5000);

    qDebug() << "numTest in thread" << QThread::currentThread();
    return num;
}

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QtConcurrent::run([](){
        const int count = 2000;

        QList<int> nums;
        for (int i = 0; i < count; ++i)
            nums.append(i);

        auto result = QtConcurrent::mapped(nums, numTest);
        result.waitForFinished();
    });

    BmMessageBox::information(nullptr, "tips", "There is no help document temporarily!");

    return app.exec();
}

The BmMessage Box window uses setIcon(), and the icon is stored in the resource file, which always blocks here. Why?

I tried using other versions of Qt 5.12.12, but this situation did not occur. How should I solve this problem without changing the version?

New contributor

bmseven is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.