访问 QML 类型,通过使用:
import QtWebSockets 1.7
注意:
Prior to Qt 5.5, the import statement was
import Qt.WebSockets 1.0
(notice the dot between
Qt
and
WebSockets
). The old statement is still supported for backwards compatibility, but it cannot be mixed with the new statement within the same project.
QML interface to QWebSocket | |
QML interface to QWebSocketServer |