summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/threads
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/threads')
-rw-r--r--examples/tutorials/threads/helloconcurrent/helloconcurrent.cpp2
-rw-r--r--examples/tutorials/threads/helloconcurrent/helloconcurrent.pro1
2 files changed, 3 insertions, 0 deletions
diff --git a/examples/tutorials/threads/helloconcurrent/helloconcurrent.cpp b/examples/tutorials/threads/helloconcurrent/helloconcurrent.cpp
index fb8f55db94..02aed98c1d 100644
--- a/examples/tutorials/threads/helloconcurrent/helloconcurrent.cpp
+++ b/examples/tutorials/threads/helloconcurrent/helloconcurrent.cpp
@@ -39,6 +39,8 @@
****************************************************************************/
#include <QtCore>
+#include <QtConcurrent>
+
/*
says hello from main thread and secondary thread using QtConcurrent
*/
diff --git a/examples/tutorials/threads/helloconcurrent/helloconcurrent.pro b/examples/tutorials/threads/helloconcurrent/helloconcurrent.pro
index fb3cd0b394..1941666755 100644
--- a/examples/tutorials/threads/helloconcurrent/helloconcurrent.pro
+++ b/examples/tutorials/threads/helloconcurrent/helloconcurrent.pro
@@ -1,4 +1,5 @@
QT -= gui
+QT += concurrent
CONFIG += console
CONFIG -= app_bundle