Safe to delete unnecessary webengine resources like locales and devtools .pak files?
-
Hi I want to bundle WebEngine in my package and by default it ships lots of translation resources (
translations/qtwebengine_locales/*.pak) and other resources like (resources/qtwebengine_devtools_resources.pak)I use WebEngine to open static license page and IdP login page to capture token. Nothing else is or should be used.
Can I safely remove these resources to free up some deployment space?
-
Hi I want to bundle WebEngine in my package and by default it ships lots of translation resources (
translations/qtwebengine_locales/*.pak) and other resources like (resources/qtwebengine_devtools_resources.pak)I use WebEngine to open static license page and IdP login page to capture token. Nothing else is or should be used.
Can I safely remove these resources to free up some deployment space?
-
@Dan-D Webengine is quite heavy to show license pages. QTextDocument can render a subset of HTML (setHtml()).
-
Hi,
And for login, you have the Qt Network Authorization module.
-
Hi,
And for login, you have the Qt Network Authorization module.
-
You might want to check the Qt WebView module as well. It might be lighter.
-
You might want to check the Qt WebView module as well. It might be lighter.
@SGaist Thank you for this suggestion!
I've actually evaluated this option, the problem for my case is that the application runs on Linux. Unfortunately, according to the docs, the underlying engine for web view for Linux is Qt's web engine.
On Linux, Qt WebView depends on the Qt WebEngine module to render content.
Currently or main concerned is the control on QT libraries. Current the app use system provided QT libraries. I am planning to ship a self contained package first. And the main concern around this is the deployment tree size.
Removing these resources saved ~80MBs but I am not sure if that would break anything