Obsolete Members for QWebSocket

クラスQWebSocket の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

シグナル

(deprecated in 6.5) void error(QAbstractSocket::SocketError error)

メンバー関数ドキュメント

[signal, deprecated in 6.5] void QWebSocket::error(QAbstractSocket::SocketError error)

この関数は6.5から非推奨となった。新しいコードでは使用しないことを強くお勧めします。

代わりにerrorOccurred(QAbstractSocket::SocketError error) を使用してください。

注意: このシグナルはオーバーロードされています。このシグナルに接続するには

// Connect using qOverload:
connect(webSocket, qOverload(&QWebSocket::error),
        receiver, &ReceiverClass::slot);

// Or using a lambda:
connect(webSocket, qOverload(&QWebSocket::error),
        this, [](QAbstractSocket::SocketError error) { /* handle error */ });
このシグナルに接続するには: より多くの例とアプローチについては、オーバーロードされたシグナルへの接続を参照してください。

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