No WebView plug-in found!
-
Hi,
I made a simple crawler using Qt 5.15.0 and QML.
It works properly when launched from QtCreator.
But when I run it standalone, it doesn't work.I ran windeployqt for sure, (--release --qmldir d:\qt\5.15.0...\qml)
and manually copied the QtWebView qml folder.
But it still doesn't work. So I activate the console.
It said, No WebView plug-in found!So I copied all of qml, plugins, and dlls into the release folder.
I also added QT += webengine configuration.I have no idea what to do anymore.
OS: Windows 10
SDK: Qt 5.15.0 MSVC2019 x64
Compiler: MSVC2017 (not 2019)Can someone help me?
-
@Pearled
I do not know whether there is any difference because this is QML, but the normal first course of action for a Qt missing plug-in problem is to invoke your executable from a shell where you have previously typed in:set QT_DEBUG_PLUGINS=1
This should cause trace output into the terminal showing where Qt is looking for what (provided this works for QML, as I said).
-
@JonB
Thanks for your reply.
I tried but still I'm not sure what the problem is.QFactoryLoader::QFactoryLoader() checking directory path "D:/.../plugins/webview" ...
QFactoryLoader::QFactoryLoader() checking directory path "D:/.../platforms" ...
QFactoryLoader::QFactoryLoader() looking at "D:/.../platforms/qdirect2d.dll"
Found metadata in lib D:/.../platforms/qdirect2d.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"direct2d"
]
},
"archreq": 0,
"className": "QWindowsDirect2DIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("direct2d")
QFactoryLoader::QFactoryLoader() looking at "D:/.../platforms/qminimal.dll"
Found metadata in lib D:/.../platforms/qminimal.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archreq": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "D:/.../platforms/qoffscreen.dll"
Found metadata in lib D:/.../platforms/qoffscreen.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archreq": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "D:/.../platforms/qwindows.dll"
Found metadata in lib D:/.../platforms/qwindows.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"windows"
]
},
"archreq": 0,
"className": "QWindowsIntegrationPlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("windows")
loaded library "D:/.../platforms/qwindows.dll"
QFactoryLoader::QFactoryLoader() checking directory path "D:/.../platformthemes" ...
QFactoryLoader::QFactoryLoader() looking at "D:/.../platformthemes/qxdgdesktopportal.dll"
Found metadata in lib D:/.../platformthemes/qxdgdesktopportal.dll, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
"MetaData": {
"Keys": [
"xdgdesktopportal",
"flatpak",
"snap"
]
},
"archreq": 0,
"className": "QXdgDesktopPortalThemePlugin",
"debug": false,
"version": 331520
}Got keys from plugin meta data ("xdgdesktopportal", "flatpak", "snap")
Found metadata in lib D:/.../QtQuick.2/qtquick2plugin.dll, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
"archreq": 0,
"className": "QtQuick2Plugin",
"debug": false,
"uri": [
"QtQuick.2"
],
"version": 331520
}loaded library "D:/.../QtQuick.2/qtquick2plugin.dll"
Found metadata in lib D:/.../QtQuick/Controls.2/qtquickcontrols2plugin.dll, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
"archreq": 0,
"className": "QtQuickControls2Plugin",
"debug": false,
"uri": [
"QtQuick.Controls.2"
],
"version": 331520
}loaded library "D:/.../QtQuick/Controls.2/qtquickcontrols2plugin.dll"
Found metadata in lib D:/.../Qt/labs/settings/qmlsettingsplugin.dll, metadata=
{
"IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
"archreq": 0,
"className": "QmlSettingsPlugin",
"debug": false,
"uri": [
"Qt.labs.settings"
],
"version": 331520
}loaded library "D:/.../Qt/labs/settings/qmlsettingsplugin.dll"
Found metadata in lib D:/.../QtQuick/Templates.2/qtquicktemplates2plugin.dll, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
"archreq": 0,
"className": "QtQuickTemplates2Plugin",
"debug": false,
"uri": [
"QtQuick.Templates.2"
],
"version": 331520
}loaded library "D:/.../QtQuick/Templates.2/qtquicktemplates2plugin.dll"
Found metadata in lib D:/.../QtWebView/declarative_webview.dll, metadata=
{
"IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
"archreq": 0,
"className": "QWebViewModule",
"debug": false,
"uri": [
"QtWebView"
],
"version": 331520
}loaded library "D:/.../QtWebView/declarative_webview.dll"
Found metadata in lib D:/.../QtQuick/Window.2/windowplugin.dll, metadata=
{
"IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
"archreq": 0,
"className": "QtQuick2WindowPlugin",
"debug": false,
"uri": [
"QtQuick.Window.2"
],
"version": 331520
}loaded library "D:/.../QtQuick/Window.2/windowplugin.dll"
No WebView plug-in found!