weather.pro (其中要加入network模块)

#-------------------------------------------------
#
# Project created by QtCreator 2019-03-30T13:54:31
#
#-------------------------------------------------

QT       += core gui
QT += network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = weather
TEMPLATE = app


SOURCES += main.cpp\
        widget.cpp

HEADERS  += widget.h

FORMS    += widget.ui
View Code

相关文章: