1. 创建控制台工程,工程文件
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 += BLOCKING_MODE
DEFINES += NO_DEFAULT_MAPPING
DEFINES += NOMI