Solved Not compiling webenginewidgets in Qt
-
Hi!
I have two versions of Qt, old and new. In the old webenginewidgets is compiled, in the new version it is not compiled, while I updated everything in the new version. Compilers are the same everywhere. The MSVC compiler is working fine. Please tell me how to fix it. -
Hi
Did you check it in installer ?
-
Yes. It is installed.
-
And do you have
QT += webengine
in your .pro file ? -
@mrjj said in Not compiling webenginewidgets in Qt:
webengine
In Qt 5.9, this is compiled, in Qt 5.12 it is not compiled
My .pro file:QT += core gui webengine webenginewidgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = Browser TEMPLATE = app DEFINES += QT_DEPRECATED_WARNINGS CONFIG += c++11 SOURCES += \ main.cpp \ mainwindow.cpp HEADERS += \ mainwindow.h FORMS += \ mainwindow.ui CONFIG += mobility MOBILITY = # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target
Error:Unknown module(s) in QT: webengine webenginewidgets
-
Hi
seems fine.
And you are using the Visual studio compiler ?
The MSVC 2017 version ?
As far as i understand from googling it wants 2017 version. -
I have MSVC 2015. It's enough to compile. In QT 5.9, MSVC 2015 compiles fine.
-
@Mikeeeeee
Yep but for newer Qt then QT 5.9, like Qt5.12.3 i think it wants VS 2017 -
@mrjj said in Not compiling webenginewidgets in Qt:
Yep but for newer Qt then QT 5.9, like Qt5.12.3 i think it wants VS 2017
Why?
I was told by one person that in a later version of Qt I copied MSVC 2015 normally.
Could it be something else? -
@Mikeeeeee
Well webengine is using Chromium so the requirement mostly likely comes from there.
Well it works for me in Qt5.12.3 with VS2017.
I dont know what else it could be. -
Probably because they wanted the newer features/fixes in a newer compiler:
https://doc.qt.io/qt-5/qtwebengine-platform-notes.html#windows
I just wish Chromium supported Mingw on Windows. We like having a gcc compiler for all our platforms.
-
@fcarney
I wish that too as i often recommend the minGW Qt for starters as it comes with
compiler and debugger and generally just work out of the box.
So its sad having one Qt module that is simply not available.
But i guess the consider VS the standard on Windows and hence have no desire to support more compilers.