Qt 6 是努力使框架更高效,且更易於使用的結果。
為兼容每個發行的所有公共 API,我們試著維護二進製和源代碼。但是,為使 Qt 成為更優框架,一些改變是不可避免的。
In this topic we summarize those changes in Qt WebSockets, and provide guidance to handle them.
This section contains information about API changes that break source compatibility.
In Qt 6, you should use
QWebSocketServer::socketDescriptor
() 和
QWebSocketServer::setSocketDescriptor
() to access the underlying socket descriptor of type
qintptr
. They mirror
QTcpServer::socketDescriptor
() 和
QTcpServer::setSocketDescriptor
(), and replace the now deprecated nativeDescriptor() and setNativeDescriptor() methods.