Los cambios introducidos en Qt WebSockets
Qt 6 son el resultado del esfuerzo consciente por hacer el framework más eficiente y fácil de usar.
Intentamos mantener la compatibilidad binaria y de código fuente de todas las API públicas en cada versión. Pero algunos cambios eran inevitables en un esfuerzo por hacer de Qt un framework mejor.
En este tema resumimos esos cambios en Qt WebSockets, y proporcionamos una guía para manejarlos.
Cambios en la API pública
Esta sección contiene información sobre los cambios en la API que rompen la compatibilidad con el código fuente.
QWebSocketServer::socketDescriptor(), QWebSocketServer::setSocketDescriptor()
En Qt 6, deberías usar QWebSocketServer::socketDescriptor() y QWebSocketServer::setSocketDescriptor() para acceder al descriptor de socket subyacente de tipo qintptr. Reflejan 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.