Error while adding QtWebKit (qmlwebkitplugin.dll: Unknown error 0x000000c1)
-
I am working on a project with QT + MinGW on windows 10. I need to use a webview in my application, but considering that QtWebEngine needs Microsoft compilers, I can't use it. I found this thread (https://forum.qt.io/topic/83760/any-alternative-to-qtwebengine-for-mingw) which suggests using QtWebKit.
I found the last release of QtWebKit over here (https://github.com/qtwebkit/qtwebkit/releases/tag/qtwebkit-5.212.0-alpha4). I downloaded this version "qtwebkit-Windows-Windows_10-Mingw73-Windows-Windows_10-X86_64.7z
20.6 MB" and pasted it in this folder "C:\Qt\Qt5.14.1\5.14.1\mingw73_32" (By the way my project is x86). Now when I run my application I get the following error:
qrc:/FormAboutUs.qml:3:1: plugin cannot be loaded for module "QtWebKit": Cannot load library C:\Qt\Qt5.14.1\5.14.1\mingw73_32\qml\QtWebKit\qmlwebkitplugin.dll: Unknown error 0x000000c1.Am I doing everything right? I don't necessarily have to use the latest version, so will it work if I download previous releases of QtWebKit?
-
You are using 64-bit QtWebKit binaries with 32-bit Qt, this won't work. You need
qtwebkit-Windows-Windows_7-Mingw73-Windows-Windows_7-X86.7z