Qt WebSockets QML Types
可通过以下方式访问 QML 类型:
import QtWebSockets 1.12注意:在 Qt 5.5之前, 导入语句为 `import Qt.WebSockets 1.0 `(请注意 `Qt ` 和 `WebSockets` 之间的点)。出于向后兼容性考虑,旧的语句仍然受支持,但不能在同一个项目中与新的语句混合使用。
QML 与 QWebSocket 的接口 | |
QML 与 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.