When manually deploying applications that depend on Qt WebEngine, all the files that are required to run the application have to be included: libraries, QML imports, plugins, and translations.
更多信息，请见 部署 Qt 应用程序 .
Qt WebEngine does try to support all 支持平台 of Qt. However, due to different requirements of Chromium this is not always possible. Known limitations are:
When manually deploying applications that depend on Qt WebEngine, the following files might have to be deployed:
The following libraries must be deployed with applications that depend on Qt WebEngine:
If Qt Quick integration is used in the application, the QtWebEngine import directory needs to be deployed.
Qt WebEngine takes advantage of the multi-process model that the Chromium project offers. The multi-process model requires that the Qt WebEngine Process executable be deployed alongside your application.
WebEngine process is executed for each QWebEngineView or WebEngineView instance. For example, a browser application with two tabs open should have two separate instances of the process running. This is a common approach used by most modern web engines to provide a stable browsing experience.
At runtime, Qt WebEngine looks for the
executable in the directory that
) returns. For Qt installations, this is
(Windows). The path can be changed by defining a
file, for example. Alternatively, an executable path can be set as a value of the
environment variable. On
, Qt WebEngine looks for the executable in
Qt WebEngine 要求下列资源文件：
qtwebengine_resources.pakcontains the resources needed by Chromium.
qtwebengine_devtools_resources.pakcontains tools for remote debugging.
qtwebengine_resources_100p.pakcontains images suitable for low resolution displays.
qtwebengine_resources_200p.pakcontains images suitable for high DPI displays.
icudtl.datprovides support for International Components for Unicode (ICU). It is the Chromium version of ICU, which is not needed if Qt WebEngine was configured to use the system ICU.
resources目录中的目录指定通过 QLibraryInfo::location ( QLibraryInfo::DataPath )
qtwebengine_locales目录中的目录指定通过 QLibraryInfo::location ( QLibraryInfo::TranslationsPath )
QTQUICK_COMPILER_SKIPPED_RESOURCES += resources/my_resource.qrc