Qt WebSockets QML Types
QML 类型通过使用导入语句来访问:
import QtWebSockets 1.9
注意: 在 Qt 5.5 之前,导入语句是import Qt.WebSockets 1.0
(注意Qt
和WebSockets
之间的圆点)。为了向后兼容,仍支持旧语句,但在同一项目中,旧语句不能与新语句混合使用。
QWebSocket 的 QML 接口 | |
QWebSocketServer 的 QML 接口 |
© 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.