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


基础教程推荐
- 什么是T&&(双与号)在 C++11 中是什么意思? 2022-11-04
- C++ 程序在执行 std::string 分配时总是崩溃 2022-01-01
- 您如何将 CreateThread 用于属于类成员的函数? 2021-01-01
- 如何定义双括号/双迭代器运算符,类似于向量的向量? 2022-01-01
- C++,'if' 表达式中的变量声明 2021-01-01
- C++ 标准:取消引用 NULL 指针以获取引用? 2021-01-01
- 运算符重载的基本规则和习语是什么? 2022-10-31
- 如何在 C++ 中处理或避免堆栈溢出 2022-01-01
- 设计字符串本地化的最佳方法 2022-01-01
- 调用std::Package_TASK::Get_Future()时可能出现争用情况 2022-12-17