Cambios en Qt WebSockets
Qt 6 son el resultado de un esfuerzo deliberado por hacer que el marco sea más eficiente y fácil de usar.
Intentamos mantener la compatibilidad binaria y de código fuente para todas las API públicas en cada versión. Sin embargo, algunos cambios eran inevitables en nuestro esfuerzo por convertir a Qt en un marco de trabajo mejor.
En este tema resumimos esos cambios en Qt WebSockets y ofrecemos orientación para gestionarlos.
Cambios en las API públicas que rompen la compatibilidad
Esta sección contiene información sobre los cambios en las API que rompen la compatibilidad con el código fuente.
QWebSocketServer::socketDescriptor(), QWebSocketServer::setSocketDescriptor()
En Qt 6, debes utilizar QWebSocketServer::socketDescriptor() y QWebSocketServer::setSocketDescriptor() para acceder al descriptor de socket subyacente de tipo qintptr. Son equivalentes a QTcpServer::socketDescriptor() y QTcpServer::setSocketDescriptor(), y sustituyen a los métodos nativeDescriptor() y setNativeDescriptor(), ahora obsoletos.
© 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.