Skip to content

Commit b9b4da7

Browse files
committed
life QtConcurrent version QtConcurrent fix
1 parent 2fadd8a commit b9b4da7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

threads/life/life.pro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
include (../../common.pri)
2-
3-
QT += core gui
1+
QT += widgets
42

53
TARGET = life
64
TEMPLATE = app
@@ -15,6 +13,7 @@ HEADERS += lifemainwindow.h \
1513

1614
FORMS += lifemainwindow.ui
1715

16+
LIBS += -lQt5Concurrent
1817
# CONFIG += mobility
1918
# MOBILITY =
2019

threads/life/lifemainwindow.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#include <QtGui>
1+
#include <QtWidgets>
2+
#include <QtConcurrent/QtConcurrent>
3+
24
#include "lifemainwindow.h"
35
#include "ui_lifemainwindow.h"
46
#include "lifewidget.h"

threads/life/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <QtGui>
1+
#include <QApplication>
22

33
#include "lifemainwindow.h"
44

0 commit comments

Comments
 (0)