No WebView plug-in found!
-
Hi,
Might be a silly question but did you add
QT += webview
to your .pro file ? -
Can you check whether you have the QtWebView libraries in your installation ?
-
Did you enable QtWebEngine module when installing Qt?
-
Did you enable QtWebEngine module when installing Qt?
@Konstantin-Tokarev yes , :)
-
@SGaist When i add QtWebView::initialize(); , it show me this error
Error -
RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
and it tells me that the qtwebviewfunctions.cpp Line 65 and just showing this in the output : Q_ASSERT(plugin); -
Can you start your application with the
QT_DEBUG_PLUGINS
environment variable set to 1 ? This should give some additional clues. -
Can you start your application with the
QT_DEBUG_PLUGINS
environment variable set to 1 ? This should give some additional clues. -
Great !
What was it ?
-
I have the same issue. I also tried adding QT_DEBUG_PLUGINS=1 to .pro as well as setting the same environment variable, but these did not help..
I am using msys/mingw64 Qt build: http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-qt5-5.12.1-2-any.pkg.tar.xz
In the log I can the warning: (qwebviewfactory.cpp:92) No WebView plug-in found! -
Hi,
The QtWebView module uses QtWebEngine on Windows. And as already written, this module is only available with MSVC2017 because of chromium.
-
In Qt 5.15.0, there will be similar error like this when deploying in Windows. My solution is to put
QtWebView::initialize();
after
QGuiApplication app(argc, argv);
There will be a warning said: QtWebEngine::initialize() called with QCoreApplication object already created and should be call before. This is depreciated and may fail in the future. but it's working.
-
In Qt 5.15.0, there will be similar error like this when deploying in Windows. My solution is to put
QtWebView::initialize();
after
QGuiApplication app(argc, argv);
There will be a warning said: QtWebEngine::initialize() called with QCoreApplication object already created and should be call before. This is depreciated and may fail in the future. but it's working.