在网页浏览器中运行应用程序
要构建WebAssembly格式的 Qt 应用程序并在网页浏览器中运行它们:
- 打开一个要在 Web 浏览器中运行的应用程序项目。
- 转到“Projects ” > “Build & Run ”,然后选择 WebAssembly 套件作为该项目的构建和运行套件。
- 选择“Run Settings ”以指定运行设置。
- 在Web browser 中,选择一个浏览器。

按照《为多种平台构建》和《运行应用程序》中的说明,将 Qt 应用程序构建为 WebAssembly 格式,并在 Web 浏览器中运行。
另请参阅 《构建 Web 应用程序》、《如何:为 WebAssembly 开发》以及《启用和禁用插件》。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.