Project ERROR: Unknown module(s) in QT: webkitwidgets(项目错误:QT 中的未知模块:webkitwidgets)
问题描述
我正在将代码从 qt4 移植到 qt5.我将以下行添加到我的 .pro
文件中,按照建议:
I am porting code from qt4 to qt5. I added the following line to my .pro
file, as suggested:
QT += webkitwidgets
但是,当我运行 qmake
时,我收到此错误:
However, when I run qmake
, I get the this error:
Project ERROR: Unknown module(s) in QT: webkitwidgets
我正在 Ubuntu 12.04 LTS 上开发并安装了 Qt 如所述.
I am developing on Ubuntu 12.04 LTS and installed Qt as described.
推荐答案
您需要安装 webkitwidgets 库.
You need to install the webkitwidgets library.
在 Ubuntu 上,在终端中试试这个:
On Ubuntu, try this in a terminal:
sudo apt-get install libqt5webkit5-dev
在 Fedora 上,该软件包具有不同的名称,因此请尝试:
On Fedora, the package has a different name, thus try:
sudo apt-get install qt5-qtwebkit-devel
这篇关于项目错误:QT 中的未知模块:webkitwidgets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:项目错误:QT 中的未知模块:webkitwidgets


- 使用 __stdcall & 调用 DLLVS2013 中的 GetProcAddress() 2021-01-01
- OpenGL 对象的 RAII 包装器 2021-01-01
- DoEvents 等效于 C++? 2021-01-01
- GDB 不显示函数名 2022-01-01
- 将 hdc 内容复制到位图 2022-09-04
- XML Schema 到 C++ 类 2022-01-01
- 哪个更快:if (bool) 或 if(int)? 2022-01-01
- 如何提取 __VA_ARGS__? 2022-01-01
- 从父 CMakeLists.txt 覆盖 CMake 中的默认选项(...)值 2021-01-01
- 将函数的返回值分配给引用 C++? 2022-01-01