我在使用QJsonValue和QJsonObject时遇到问题
即使我添加了QT+=core。我使用的是Qt5.5,有人知道问题出在哪里吗?提前感谢
发布于 2017-08-04 19:43:27
Pro file:
QT += core gui webkit network
TEMPLATE = app
SOURCES += main.cpp \
apiservis.cpp
HEADERS += \
apiservis.h
QT = core
QT -= gui
QT += webkit
QT += webkit webkitwidgets
QT += network
TARGET = cpp
CONFIG += console
CONFIG -= app_bundle
TARGET = main
DISTFILES += \
API_kljuc.txt
And in the .h file I have:
#include <QCoreApplication>
#include <iostream>
#include <cmath>
#include <iomanip>
#include <vector>
#include <string.h>
#include <locale>
#include <sstream>
#include <fstream>
#include <string>
#include <curl/curl.h>
#include <stdio.h>
#include <QHash>
#include <QVariantMap>
#include <QWebFrame>
#include <QWebView>
#include <QNetworkReply>
#include <QCoreApplication>
#include <QDebug>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QUrl>
#include <QObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QJsonObject>
But when I try to build it, error is: QJsonARRay:No such file or directory.https://stackoverflow.com/questions/45504847
复制相似问题