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?
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]
you can reinstall qt with homebrew, then make sure to add the flag --with-qtwebkit
so in total:
brew install qt --with-qtwebkit
In the installer there is a separate point "Qt WebEngine" that you have to check during installation:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With