24,854
社区成员
发帖
与我相关
我的任务
分享
QWebSocket *pSocket = new QWebSocket;
QSslConfiguration config;
config.setProtocol(QSsl::TlsV1_0OrLater);
config.setPeerVerifyMode(QSslSocket::AutoVerifyPeer);
pSocket->setSslConfiguration(config);
connect(pSocket, SIGNAL(connected()), this, SLOT(slotSingleConnected()));
connect(pSocket, SIGNAL(disconnected()), this, SLOT(slotSingleDisConnected()));
connect(pSocket, SIGNAL(textMessageReceived(const QString&)), this, SLOT(slotTextRecived(const QString&)));
connect(pSocket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(slotError(QAbstractSocket::SocketError)));
pSocket->open(QUrl(url));
您好,请问您解决了这个问题吗,可以请教一下解决方法吗,我也遇到了这类问题