2013-02-24 7 views
5

codice semplice:QT5 Migrazione Impossibile aprire il file include: 'QGraphicsWebView'?

#include <QCoreApplication> 
#include <QGraphicsWebView> 

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

    return a.exec(); 
} 

Esempio .pro:

QT  += core gui declarative network webkit multimedia 

TARGET = QTTest 
CONFIG += console 
CONFIG -= app_bundle 

TEMPLATE = app 


SOURCES += main.cpp 

E errore che ottengo:

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?

risposta

2

Nella linea

QT  += core gui declarative network webkit multimedia 

sostituire webkit da webkitwidgets:

QT  += core gui declarative network webkitwidgets multimedia