Qt WebSockets QML Types

Para acceder a los tipos QML, se utiliza lo siguiente:

import QtWebSockets 1.12

Nota: Antes de Qt 5.5, la instrucción de importación era « import Qt.WebSockets 1.0 » (fíjate en el punto entre « Qt » y « WebSockets »). La instrucción antigua sigue siendo compatible por motivos de retrocompatibilidad, pero no se puede mezclar con la nueva instrucción dentro del mismo proyecto.

WebSocket

Interfaz QML para QWebSocket

WebSocketServer

Interfaz QML para 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.