Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown module(s) in QT: webenginewidgets


Hi. I want to connect QtWebEngineWidgets. To do this, you need to write(https://doc.qt.io/qt-5/qtwebenginewidgets-module.html) in .cpp file
#include <QtWebEngineWidgets>

and

QT += webenginewidgets

inside .pro file.
The problem is that when writing to a .pro file, I get the error - Unknown module(s) in QT: webenginewidgets
Everywhere I read, it is only written that you need to connect the module in the .pro file, but it doesn’t work for me. Am I doing everything right?
• Qt Creator version - 5.0.0 Community
• Qt version - 6.1.3
• C++ compiler version - MSVC2019 64bit 17.032112.339(amd64)
UPD: I want to add that this module is not in the installer.
Installer exaple1, Installer example2

like image 310
Gremeat Avatar asked Dec 20 '25 21:12

Gremeat


2 Answers

Possibly the needed files aren't installed. Try adding this package containing the development files:

sudo apt-get install qtwebengine5-dev
like image 86
whtyger Avatar answered Dec 22 '25 11:12

whtyger


It turned out that it was necessary to install a newer version of Qt. For example, since version 6.2.3.0 and newer, the installer contains the "WebView" item. I'm installing it now and I'll see if it helps. Thank you.

like image 30
Gremeat Avatar answered Dec 22 '25 12:12

Gremeat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!