Qt WebSockets QML Types

A los tipos QML se accede mediante using:

import QtWebSockets 1.11

Nota: Antes de Qt 5.5, la sentencia import era import Qt.WebSockets 1.0 (observe el punto entre Qt y WebSockets). La antigua sentencia todavía está soportada por compatibilidad con versiones anteriores, pero no puede mezclarse con la nueva sentencia dentro del mismo proyecto.

WebSocket

Interfaz QML con QWebSocket

WebSocketServer

Interfaz QML con QWebSocketServer

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