このページでは

変更点Qt WebSockets

Qt 6 における変更点は、フレームワークをより効率的で使いやすくするための意図的な取り組みの結果です。

各リリースにおいて、すべての公開 API についてバイナリおよびソースの互換性を維持するよう努めています。しかし、Qt をより優れたフレームワークにするためには、いくつかの変更は避けられませんでした。

このトピックでは、Qt WebSockets におけるそれらの変更点をまとめ、それらに対処するためのガイダンスを提供します。

公開 API の互換性を破る変更

このセクションでは、ソース互換性を損なう API の変更に関する情報を記載しています。

QWebSocketServer::socketDescriptor()、QWebSocketServer::setSocketDescriptor()

Qt 6 では、qintptr 型の基盤となるソケットディスクリプタにアクセスするために、QWebSocketServer::socketDescriptor() およびQWebSocketServer::setSocketDescriptor() を使用する必要があります。これらはQTcpServer::socketDescriptor() およびQTcpServer::setSocketDescriptor() を反映したものであり、現在非推奨となっている nativeDescriptor() および setNativeDescriptor() メソッドに代わるものです。

© 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.