QT += concurrent widgets CONFIG += cmdline SOURCES += main.cpp target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/runfunction INSTALLS += target