Solved Unknown module(s) in QT: webkitwidgets
I have been trying to use Qt WebEngine, but I need to add it to my .pro file. I tried adding 'webkitwidgets', but all I get is the error 'Unknown module(s) in QT: webkitwidgets'. I would appreciate some help. Thanks in advance!
- I am running Ubuntu Mate
- I am running Qt Creator 4.6.2
- I am running Qt 5.10.1
Again thanks in advance! : )
Also my .pro file.
TEMPLATE +=app QT+= webkitwidgets CONFIG += c++11
VRonin last edited by VRonin
webengine != webkit. the first is based on the core of Google Chrome while the other is based on the core of Apple's Safari
QT += webenginewidgets
Sorry, I did do that, I just wrote it down wrong. Its still is an error.
//My actual .pro file TEMPLATE +=app QT+= webenginewidgets CONFIG+= c++11
QT += widgets webenginewidgets
It still won't work. Is it my version? Qt 5.10.1
Look at the .pro file of the DemoBrowser in the Examples folder that come along with Qt.
I did. That's what was in the .pro file.
//Simple Browser .pro File TEMPLATE = app TARGET = simplebrowser QT += webenginewidgets CONFIG += c++11 HEADERS += \ browser.h \ browserwindow.h \ downloadmanagerwidget.h \ downloadwidget.h \ tabwidget.h \ webpage.h \ webpopupwindow.h \ webview.h SOURCES += \ browser.cpp \ browserwindow.cpp \ downloadmanagerwidget.cpp \ downloadwidget.cpp \ main.cpp \ tabwidget.cpp \ webpage.cpp \ webpopupwindow.cpp \ webview.cpp FORMS += \ certificateerrordialog.ui \ passworddialog.ui \ downloadmanagerwidget.ui \ downloadwidget.ui RESOURCES += data/simplebrowser.qrc # install target.path = $$[QT_INSTALL_EXAMPLES]/webenginewidgets/simplebrowser INSTALLS += target
Make sure to delete the build folder
and re-run qmake from build menu to make sure .pro file is 100% parsed again.
What is the build folder? Sorry if I am asking a lot of, probably pointless, questions. But I appreciate the help.
All questions are fine.
The build folder is where it puts all generated files. all the .o files etc.
Its normally located on same level as the project folder.
and named something like
if you are using shadow build. you can see it in projects
If issue finding it then
Right click on any file in proejct
select Open containing folder
The file explorer should come.
Go one step up/ back
you should see folder. ( that is if u did build the project)
Okay, I did that and it still didn't work. I deleted the build folder and re-built it.
ok so we know u 100% have
QT += webenginewidgets
I wonder if its installed ?
It has to be selected during install if not whole group was selected.
If you used the online installer, you can use
MaintenanceTool.exe in Qt folder.
Okay, I have the Maintenance Tool. But it is a .dat file. Do I have to run a chmod command to get it running? And what would the chmod command be. Thanks for upvoting me mrjj!
Hmm. I just releasize you are on linux. :)
Did you use online installer or got Qt via distro ?
should be something like
I used the online installer after using the distro's repositories. Would that affect anything?
Edit: I got the .dat and .ini
mrjj Lifetime Qt Champion last edited by
So you dont have the ".exe" ?
No I don't...
Im not 100% sure but i think easy route to install extra Qt version from
online to get the tool. ( and install in local user folder, NOT system wide folder )
If wonder if we can just copy exe. but i fear .dat is not updated.
What is the local user folder?
So you want me to install Qt again with the online install
I just managed to copy the .dat file so I could rename it o .exe. It opened up an archive manager and displayed an error message saying it couldn't open the file as a PE archive
well just in our home folder.
Not in /opt or anywhere rest of system might look for so files etc.
(just to be safe. not sure it matters)
Well it seems to be suggested that.
Else wait a few hours and maybe someone know how to apt-get it directly or
we could also just try to copy my version and see but im not sure it has its right ini file and dat file then.
maybe you can apt-get webengine directly, but im not sure under which name/deb file.
the .dat file is NOT the exe. :)