2013-02-24 9 views
5

Einfach Code:QT5 Migration Kann die Include-Datei nicht öffnen: 'QGraphicsWebView'?

#include <QCoreApplication> 
#include <QGraphicsWebView> 

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

    return a.exec(); 
} 

Probe .pro:

QT  += core gui declarative network webkit multimedia 

TARGET = QTTest 
CONFIG += console 
CONFIG -= app_bundle 

TEMPLATE = app 


SOURCES += main.cpp 

Und Fehler erhalte ich:

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?

Antwort

2

In der Zeile

QT  += core gui declarative network webkit multimedia 

ersetzen webkit durch webkitwidgets:

QT  += core gui declarative network webkitwidgets multimedia 
Verwandte Themen