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 エラー)を使用してください。

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

// 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 */ });
その他の例や方法については、「オーバーロードされたシグナルへの接続」を参照してください。

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