Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webkitwidgets not found in QT for OS X

Tags:

macos

qt

I installed Qt for mac via .dmg installer. I added this to my .pro file:

QT       += webkitwidgets

and then i got this error:

Project ERROR: Unknown module(s) in QT: webkitwidgets

On Ubuntu, this solution works fine:

sudo apt-get install libqt5webkit5-dev

Also, if I run whereis qmake nothing shows up.

Does anybody know how to fix this on Mac OS?

like image 307
Luca Boieru Avatar asked Dec 29 '14 14:12

Luca Boieru


3 Answers

It seems that qtwebkit is deprecated as of version upper than 5.7

Instead of brew install qt --with-qtwebkit
Try brew install [email protected] --with-qtwebkit

It seems that this is last formula version with --with-qtwebkit option

https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]

like image 176
iamandrewluca Avatar answered Oct 15 '22 10:10

iamandrewluca


you can reinstall qt with homebrew, then make sure to add the flag --with-qtwebkit so in total:

    brew install qt --with-qtwebkit
like image 38
Matthias Michael Engh Avatar answered Oct 15 '22 10:10

Matthias Michael Engh


In the installer there is a separate point "Qt WebEngine" that you have to check during installation:

enter image description here

like image 45
SteakOverflow Avatar answered Oct 15 '22 11:10

SteakOverflow