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
基础教程推荐
- c++ STL设置差异 2022-01-01
- 与 CAS 的原子交换(使用 gcc 同步内置函数) 2022-01-01
- C++:获取传递给函数的多维数组的行大小 2021-01-01
- 如何部分禁用 cmake C/C++ 自定义编译器检查 2021-01-01
- 如何在 C++ 中正确使用命名空间? 2022-01-01
- 如何更改 SysDateTimePick32 或 CDateTimeCtrl 的背景颜色? 2022-01-01
- 随机插入/删除的综合向量与链表基准 2022-01-01
- 为什么我们不能使用“虚拟继承"?在 COM 中? 2022-01-01
- 将不可复制的闭包对象传递给 std::function 参数 2021-01-01
- 提升 ASIO 流缓冲 2021-01-01
