Qt WebSockets 示例

以下示例可作为使用 Qt WebSockets API。

QML WebSocket Client

说明如何编写一个 QML WebSocket 客户端示例。

QML WebSocket Server

一个简单的示例,展示了如何使用 QML WebSocketServer。

Secure WebSocket Echo Client

一个使用安全 WebSocket(wss)的简单客户端应用程序。

Secure WebSocket Echo Server

一个简单的服务器,用于通过安全 WebSocket(wss)响应客户端。

Simple WebSocket Chat

一个使用 WebSocket 协议的简易聊天应用程序。

WebSocket Echo Client

演示如何编写一个简单的 WebSocket 客户端应用程序。

WebSocket Echo Server

演示如何编写一个简单的 WebSocket 服务器应用程序。

© 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.