Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
添加后QT += network webkit我尝试QT += webkit了 .pro 解决方案文件并从 QtCreator 内部运行 qmake 并收到此错误:
QT += network webkit
QT += webkit
error: Unknown module(s) in QT: webkit
我真的需要利用这些包括:
#include <QWebView> #include <QUrl>
有任何想法吗?
如果您说您安装了 beta 版本,我想您安装了 Qt 版本 5。在这种情况下,webkit 模块不再存在。你需要 webkitwidgets:
QT += webkitwidgets
这将添加使用 QWebView 所需的模块。QUrl 在核心模块中,所以不需要网络模块。