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++结构和函数声明。为什么它不能编译? 2022-11-07
- 这个宏可以转换成函数吗? 2022-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 常量变量在标题中不起作用 2021-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 我有静态或动态 boost 库吗? 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01
