gpt4 book ai didi

c++ - QT5 迁移无法打开包含文件 : 'QGraphicsWebView' ?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:44:55 26 4
gpt4 key购买 nike

简单代码:

#include <QCoreApplication>
#include <QGraphicsWebView>

int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);

return a.exec();
}

示例.pro:

QT       += core gui declarative network webkit multimedia

TARGET = QTTest
CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app


SOURCES += main.cpp

我得到错误:

C1083: Cannot open include file: 'QGraphicsWebView': No such file or directory

What the is going on there in QT5? this class shall Be included like this and so I shall see no such error? I do not get some fancy QT5 new feature?

最佳答案

行内

QT       += core gui declarative network webkit multimedia

webkit 替换为 webkitwidgets :

QT       += core gui declarative network webkitwidgets multimedia

关于c++ - QT5 迁移无法打开包含文件 : 'QGraphicsWebView' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15057765/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com