1.工程文件
与上一个工程文件相比,只少了一行
DEFINES += BLOCKING_MODE
//test1_NONBLOCKING.pro
QT -= gui
CONFIG += c++11 console
CONFIG -= app_bundle
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += WIN32
DEFINES += _WINDOWS
DEFINES += NDEBUG
DEFINES += NO_DEF