构建 Web 应用程序

操作指南:WebAssembly 开发

使用 Qt for WebAssembly 将应用程序构建为 WebAssembly 格式,并在本地 Web 浏览器上部署和运行。

在项目的运行设置中更改网页浏览器。

WebAssembly 是一种二进制格式,允许在网页中运行沙箱化的可执行代码。该格式的运行速度几乎与本机机器码相当,并得到所有主流网页浏览器的支持。

注意:需启用 WebAssembly 插件才能使用该功能。

若要构建 Web 应用程序并在 Web 浏览器中运行,请通过 Qt Online Installer。它会自动将构建和运行套件添加到Qt Creator 中。

另请参阅 《如何:为 WebAssembly 开发》、《启用和禁用插件》以及《Qt for 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.