Home > Mobile >  Qt questions about receiving the json data
Qt questions about receiving the json data

Time:09-15

Excuse me, bosses, qt can send message twice? Found that sending a second has been receiving less than data, function has been display format error




CodePudding user response:

Set the SSL, need the HTTPS protocol SSL certificate
QSslConfiguration 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 failed

CodePudding 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 the
And 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?
  •  Tags:  
  • Qt
  • Related