本文介紹了項(xiàng)目錯(cuò)誤:QT 中的未知模塊:webkitwidgets的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
我正在將代碼從 qt4 移植到 qt5.我將以下行添加到我的 .pro
文件中,按照建議:
I am porting code from qt4 to qt5. I added the following line to my .pro
file, as suggested:
QT += webkitwidgets
但是,當(dāng)我運(yùn)行 qmake
時(shí),我收到此錯(cuò)誤:
However, when I run qmake
, I get the this error:
Project ERROR: Unknown module(s) in QT: webkitwidgets
我正在 Ubuntu 12.04 LTS 上開發(fā)并安裝了 Qt 如所述.
I am developing on Ubuntu 12.04 LTS and installed Qt as described.
推薦答案
您需要安裝 webkitwidgets 庫.
You need to install the webkitwidgets library.
在 Ubuntu 上,在終端中試試這個(gè):
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
這篇關(guān)于項(xiàng)目錯(cuò)誤:QT 中的未知模塊:webkitwidgets的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!