QtExamples/QtHttpEx/QtHttpEx.pro
touwoyimuli 19d8cade29 feat: QNetworkAccessmanager and QNetworkReply and QNetworkRequest
提供网络协议的7层模型中的 中高层的网络协议:Http/FTP/SNMP等

QNetworkAccessmanager  协调网络操作类(处理网络的请求和回应):负责发送网络请求,创建网络响应
QNetworkRequest        网络请求
QNetworkReply          网络请求的响应(提供finished()/readyRead()/downloadProgress()信号),监测网络响应的执行情况,执行相应的操作
2019-12-07 00:05:57 +08:00

57 lines
1.3 KiB
Prolog

#-------------------------------------------------
#
# Project created by QtCreator 2019-12-05T21:58:28
#
#-------------------------------------------------
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = QtHttpEx
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as 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
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG += c++11
SOURCES += \
main.cpp \
ExHttp.cpp
HEADERS += \
ExHttp.h
FORMS += \
ExHttp.ui
macx {
ICON = images/icon.icns
}
unix:!macx{
# linux only
}
win32 {
RC_ICONS = images/icon.ico
}
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
resources.qrc