Answer the question
In order to leave comments, you need to log in
How to connect openssl to qt5?
I am using this example https://code.qt.io/cgit/qt/qtwebsockets.git/tree/e... to create a wss connection. (ws works)
With the addition of code:
connect( &m_webSocket, QOverload<QAbstractSocket::SocketError>::of(&QWebSocket::error), [=](QAbstractSocket::SocketError) {
qInfo() << "error" << m_webSocket.errorString();
});
qDebug() << "QSslSocket::sslLibraryBuildVersionString()" << QSslSocket::sslLibraryBuildVersionString();
qDebug() << "QSslSocket::sslLibraryVersionString()" << QSslSocket::sslLibraryVersionString();
qDebug() << "Supports SSL: " << QSslSocket::supportsSsl();
perl Configure VC-WIN32 no-asm shared
nmake
nmake test
nmake install
Answer the question
In order to leave comments, you need to log in
>What and how to connect in the *.pro
LIBS project file += -lssl -lcrypto
https://doc.qt.io/qt-5/ssl.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question