#include int main...">

QT5 Migration Can't open the include file: "QGraphicsWebView"?

Simple code:

#include <QCoreApplication>
#include <QGraphicsWebView>

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

    return a.exec();
}

Example .pro:

QT       += core gui declarative network webkit multimedia

TARGET = QTTest
CONFIG   += console
CONFIG   -= app_bundle

TEMPLATE = app


SOURCES += main.cpp

And the error I get:

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

What is going on there in QT5? should this class be included in this way, and therefore I will not see such an error? I don't have a new fancy QT5 feature?

+5
source share
1 answer

In line

QT       += core gui declarative network webkit multimedia

replace webkitwith webkitwidgets:

QT       += core gui declarative network webkitwidgets multimedia
+2
source

All Articles