QMake ERROR: Unknown module in QT: webenginewidgets, in version 6.2.4 and 6.3.0
-
Hi, I recently set up a new desktop machine. I was running with Qt 5.x.something on previous machine, but now I can't seem to get any QWebEngineView etc now.
Yes, I've installed all the web stuff in both versions of Qt using in the maintenance tool (Qt 6.2.4 & 6.3.0). I selected 3 different web things including WebView. I didn't do "WebAssembly" because I think that's unrelated.
How can I get back QtWebEngineWidgets and still use Qt 6?
Thanks.
-
@enjoysmath said in QMake ERROR: Unknown module in QT: webenginewidgets, in version 6.2.4 and 6.3.0:
Yes, I've installed all the web stuff in both versions of Qt using in the maintenance tool (Qt 6.2.4 & 6.3.0). I selected 3 different web things including WebView.
Did you select Qt > Qt 6.2.4 > Additional Libraries > Qt WebEngine ?
-
Yes, I selected them each in both Qt's.
-
@enjoysmath said in QMake ERROR: Unknown module in QT: webenginewidgets, in version 6.2.4 and 6.3.0:
Yes, I selected them each in both Qt's.
Thanks for your screenshot; yes, it looks like you've selected it.
I also notice that you've selected MinGW. Note that Chromium (hence Qt WebEngine) is incompatible with MinGW -- you can only use it with MSVC.
@JKSH This seems to be a bug, so how do we go about circumventing it?
Sorry, I cannot reproduce your issue.
Qt += webenginewidgets
works for me on both Qt 6.2.4 and Qt 6.3.0 RC (MSVC). -
@JKSH said in QMake ERROR: Unknown module in QT: webenginewidgets, in version 6.2.4 and 6.3.0:
Where on Earth did you read about that? It should be a note somewhere on the QtWebEngine checkbox in the case that only MinGW is selected.
BTW, I installed Visual Studio 2022, and it's leading to linker errors. So what is the most recent version of Visual Studio we can use that you know of? Thanks. :)
-
@enjoysmath said in QMake ERROR: Unknown module in QT: webenginewidgets, in version 6.2.4 and 6.3.0:
Where on Earth did you read about that?
- https://doc.qt.io/Qt-6/qtwebengine-platform-notes.html
- https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md#System-requirements
It should be a note somewhere on the QtWebEngine checkbox in the case that only MinGW is selected.
Good idea. Care to create a request? https://bugreports.qt.io/
BTW, I installed Visual Studio 2022, and it's leading to linker errors. So what is the most recent version of Visual Studio we can use that you know of? Thanks. :)
What is the exact error message?
The installer contains "MSVC 2019" options, so 2019 is a good bet. However, other people can use MSVC 2022 just fine: https://forum.qt.io/topic/135629/qt-6-with-msvc-2022