Qt WebSockets 范例

以下示例可作为使用 Qt WebSocketsAPI 的指南。

QML WebSocket Client

解释如何编写 QML WebSocket 客户端示例。

QML WebSocket Server

展示如何使用 QML WebSocketServer 的简单示例。

Secure WebSocket Echo Client

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

Secure WebSocket Echo Server

通过安全 WebSockets (wss) 响应客户端的简单服务器。

Simple WebSocket Chat

使用 WebSocket 协议的最小聊天应用程序。

WebSocket Echo Client

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

WebSocket Echo Server

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

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