简体   繁体   English

QT中的未知模块:webkit

[英]Unknown module(s) in QT: webkit

Added QT += network webkit and I tried just QT += webkit to the .pro solution file and ran qmake from inside the QtCreator and got this error: 添加了QT += network webkit ,我尝试了QT += webkit到.pro解决方案文件并从QtCreator内部运行qmake并得到了这个错误:

error: Unknown module(s) in QT: webkit

I really need to make use of these includes: 我真的需要利用这些包括:

#include <QWebView>
#include <QUrl>

Any ideas? 有任何想法吗?

If you say you installed the beta version I suppose you installed Qt version 5. In that case webkit module does not exist anymore. 如果您说您安装了测试版,我认为您安装了Qt版本5.在这种情况下,webkit模块不再存在。 You need webkitwidgets: 你需要webkitwidgets:

QT += webkitwidgets

That will add the module needed to use QWebView. 这将添加使用QWebView所需的模块。 QUrl is in the core module, so you don't need the network module. QUrl位于核心模块中,因此您不需要网络模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM