Unknown module(s) in QT: webenginewidgets
-
I've removed all components with Maintenance tool, then reinstalled
Qt and Web engine with online installerTrying to compile sample project:
QT += widgets webenginewidgets CONFIG += c++17 SOURCES += main.cpp
#include <QApplication> #include <QWebEngineView> #include <QUrl> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWebEngineView view; view.resize(1200, 800); view.load(QUrl(QStringLiteral("https://www.qt.io"))); view.show(); return app.exec(); }
getting error:
:-1: error: Unknown module(s) in QT: webchannel positioningKindly advise!
q.png@JacobNovitsky said in Unknown module(s) in QT: webenginewidgets:
webchannel positioning
Same: did you install these two modules?
-
libqt6webchannel6/jammy,now 6.2.4-1ubuntu1 amd64 [installed,automatic]
libqt6webchannel6-dev/jammy,now 6.2.4-1ubuntu1 amd64 [installed,automatic]
1wlibqt6positioning6/jammy,now 6.2.4-1 amd64 [installed,automatic]
libqt6positioning6-plugins/jammy,now 6.2.4-1 amd64 [installed,automatic]
libqt6positioningquick6/jammy,now 6.2.4-1 amd64 [installed,automatic]
qt6-positioning-dev/jammy,now 6.2.4-1 amd64 [installed,automatic] -
libqt6webchannel6/jammy,now 6.2.4-1ubuntu1 amd64 [installed,automatic]
libqt6webchannel6-dev/jammy,now 6.2.4-1ubuntu1 amd64 [installed,automatic]
1wlibqt6positioning6/jammy,now 6.2.4-1 amd64 [installed,automatic]
libqt6positioning6-plugins/jammy,now 6.2.4-1 amd64 [installed,automatic]
libqt6positioningquick6/jammy,now 6.2.4-1 amd64 [installed,automatic]
qt6-positioning-dev/jammy,now 6.2.4-1 amd64 [installed,automatic]@JacobNovitsky If you are using the Qt version from the online installer, you have to add these dependencies from the online installer as well...
Or just use the Qt version from your distribution. However you cannot mix and match.
-
Should I install above libraries with version 6.9.2? (as per my Qt version)
-
Should I install above libraries with version 6.9.2? (as per my Qt version)
@JacobNovitsky You should install these libraries for the Qt version you're using.
You wrote:
"I've removed all components with Maintenance tool, then reinstalled
Qt and Web engine with online installer"
Doesn't that mean that you now need to install these modules using Qt Maintenance Tool from that Qt installation? -
This post is deleted!
-
All modules installed, version of module is the same as Qt -> 6.9.2
getting error when trying to build below::-1: error: Project ERROR: Unknown module(s) in QT: webchannel positioning
TEMPLATE = app TARGET = webengine_test QT += core gui widgets webenginewidgets # <-- webenginewidgets is required CONFIG += c++17 SOURCES += main.cpp
#include <QApplication> #include <QWebEngineView> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWebEngineView view; view.resize(800, 600); view.load(QUrl("https://www.qt.io")); // any test URL view.show(); return app.exec(); }
-
All modules installed, version of module is the same as Qt -> 6.9.2
getting error when trying to build below::-1: error: Project ERROR: Unknown module(s) in QT: webchannel positioning
TEMPLATE = app TARGET = webengine_test QT += core gui widgets webenginewidgets # <-- webenginewidgets is required CONFIG += c++17 SOURCES += main.cpp
#include <QApplication> #include <QWebEngineView> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWebEngineView view; view.resize(800, 600); view.load(QUrl("https://www.qt.io")); // any test URL view.show(); return app.exec(); }
@JacobNovitsky when you say all modules installed:
- from the same source ?
- are you using the Qt version with all the modules installed to build your application ?