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

myW*_*SON 5 c++ migration qt5

简单代码:

#include <QCoreApplication>
#include <QGraphicsWebView>

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

    return a.exec();
}
Run Code Online (Sandbox Code Playgroud)

示例.pro:

QT       += core gui declarative network webkit multimedia

TARGET = QTTest
CONFIG   += console
CONFIG   -= app_bundle

TEMPLATE = app


SOURCES += main.cpp
Run Code Online (Sandbox Code Playgroud)

我得到的错误:

C1083: Cannot open include file: 'QGraphicsWebView': No such file or directory
Run Code Online (Sandbox Code Playgroud)

QT5的情况如何?这个类应该包括在内,所以我不会看到这样的错误?我没有得到一些花哨的QT5新功能?

Ant*_*ane 2

在行

QT       += core gui declarative network webkit multimedia
Run Code Online (Sandbox Code Playgroud)

替换webkitwebkitwidgets

QT       += core gui declarative network webkitwidgets multimedia
Run Code Online (Sandbox Code Playgroud)