Obsolete Members for QWebSocket
Os seguintes membros da classe ` QWebSocket ` estão obsoletos. Eles são fornecidos para manter o código-fonte antigo em funcionamento. Recomendamos enfaticamente que não sejam utilizados em código novo.
Sinais
(deprecated in 6.5) void | error(QAbstractSocket::SocketError error) |
Documentação das funções-membro
[signal, deprecated in 6.5] void QWebSocket::error(QAbstractSocket::SocketError error)
Essa função está obsoleta desde a versão 6.5. Recomendamos enfaticamente que você não a utilize em códigos novos.
Use errorOccurred(erroQAbstractSocket::SocketError ) em vez disso.
Observação: este sinal está sobrecarregado. Para se conectar a este sinal:
// 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.