Qt WebChannel 示例

这些示例演示了如何使用QWebChannel 的C++ API和WebChannel 的QML API。

Qt WebChannel ChatClient HTML Example

一个通过 WebSocket 与 QWebChannel 服务器通信的 HTML/JavaScript 客户端。

Qt WebChannel ChatClient QML Application

一个通过 WebSocket 与 QWebChannel 服务器通信的 QML 客户端。

Qt WebChannel ChatServer Example

使用 QWebChannel C++ API 实现的一个简单聊天服务器。

Qt WebChannel Standalone Example

服务器与在浏览器中运行的远程客户端之间进行的简单聊天。

© 2026 The Qt Company Ltd. 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.