CodePudding user response:
Set the SSL, need the HTTPS protocol SSL certificateQSslConfiguration config=QSslConfiguration: : defaultConfiguration ();
The config. SetPeerVerifyMode (QSslSocket: : VerifyNone);
The config. SetProtocol (QSsl: : TlsV1_2);
Network_request. SetSslConfiguration (config);
CodePudding user response:
Thank you for your answer, but I try to set up SSL, and download libeay32. DLL and ssleay32. Two library DLL files, copies the two libraries into a program generated directory (i.e., at the same level of generated exe directory), change the code, but still failedCodePudding user response:
How much is your Qt version? Libeay32. DLL and ssleay32. DLL this is openssl1.0 dynamic library, the recent version of the Qt has were 1.1 libssl - 1 _1. DLL and libcrypto - 1 _1. DLL theAnd you also want to make sure that you download digits (32 bit or 64 bit) of the procedure is the same with you, and in the online installer that Qt is precompiled good 32-bit and 64 - bit openssl dynamic library
If load openssl success, generally don't need another set QSslConfiguration, QNetworkAccessManager will be yourself
CodePudding user response:
Signals and slots function: why do you want to connect two times? The same signals and slots are not connection?