2013-02-24 8 views
5

シンプルコード:QT5 Migrationインクルードファイルを開くことができません: 'QGraphicsWebView'?

#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?

答えて

2

ラインで

QT  += core gui declarative network webkit multimedia 

webkitwidgetswebkitを置き換える:

QT  += core gui declarative network webkitwidgets multimedia 
関連する問題