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

注意:シグナルerrorはこのクラスでオーバーロードされています。関数ポインタ構文を使用してこのシグナルに接続するために、Qtはこの例に示すように関数ポインタを取得する便利なヘルパーを提供しています:

connect(webSocket, QOverload<QAbstractSocket::SocketError>::of(&QWebSocket::error),
    [=](QAbstractSocket::SocketError 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.