Qt WebEngine not working after using windeployqt (Qt 6.7.2 MSVC2019)
-
Hi, I'm trying to deploy my Qt application, which uses QWebEngineView and QWebChannel. It runs perfectly in Qt Creator (debug and release mode), but after using windeployqt, the WebEngine components do not load properly. The application launches, but the HTML content is not displayed.
I have already searched this forum for similar issues, but I couldn't find a solution that works for me. So, I’m posting this question again in hopes of finding some guidance.
I am using Qt 6.7.2 with MSVC2019 64-bit.
Here’s what I did:- Running windeployqt
I ran the following command:
windeployqt --release --webengine program.exe
However, I got this error:
unknown option: --webengine
So I tried running it without the --webengine flag:
windeployqt --release program.exe
It completed without errors, but QWebEngineView still does not work.
- Deployment Folder Structure
All required files have been copied to the deployment folder, including:
Essential DLLs:
Qt6Core.dll
Qt6Gui.dll
Qt6Widgets.dll
Qt6WebEngineCore.dll
Qt6WebEngineWidgets.dll
Qt6WebChannel.dll
Qt6WebEngine.dll
Qt6Qml.dll
Qt6Quick.dll
Qt6Network.dll
d3dcompiler_47.dll
WebEngine Resources:
qtwebengine_locales/ (entire folder)
resources/ (entire folder)
webengine_resources.pak
webengine_resources_100p.pak
webengine_resources_200p.pak
qtwebengine_devtools_resources.pak
icudtl.dat
Executable Files:
QtWebEngineProcess.exe (inside resources/)
3. qt.conf Configuration
I created a qt.conf file in the same folder as program.exe with the following content:[Paths] Prefix=. Plugins=plugins Libraries=. Imports=imports Qml2Imports=qml Translations=translations
But WebEngine still does not work.
- Missing Folder?
I noticed that C:\Qt\6.7.2\msvc2019_64\plugins\qtwebengine\ does not exist on my system. Could this be the issue? If so, how can I fix it?
Has anyone encountered this issue with Qt 6.7.2 WebEngine?
Any help would be greatly appreciated! Thanks in advance. - Running windeployqt
-
@MyNameIsQt said in Qt WebEngine not working after using windeployqt (Qt 6.7.2 MSVC2019):
unknown option: --webengine
I know nothing about this, but https://doc.qt.io/qt-6/windows-deployment.html#the-windows-deployment-tool actually claims this should be
-webengine
? As well as perhaps-webenginewidgets
and-webchannel
? -
@MyNameIsQt To add to @JonB : you can get a list of all parameters by calling: windeployqt --help
-