首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用<QJsonValue> <QJsonObject>

无法使用<QJsonValue> <QJsonObject>
EN

Stack Overflow用户
提问于 2017-08-04 18:47:03
回答 1查看 1.1K关注 0票数 0

我在使用QJsonValue和QJsonObject时遇到问题

即使我添加了QT+=core。我使用的是Qt5.5,有人知道问题出在哪里吗?提前感谢

EN

回答 1

Stack Overflow用户

发布于 2017-08-04 19:43:27

代码语言:javascript
复制
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.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45504847

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档