GUI vs Console - QNetworkAccessManager ssl handshake fails error
-
Hello, I am writing to ask for help. I am developing an application that uses an API to connect to a server and fetch data from it using POST and GET in json format. I am using QNetworkAccessManager, request, and replay. The code sequentially logs in, obtains a token for future connections, and then retrieves data using the token. Initially, I wrote the entire thing as a test in a QT console application, and everything works correctly. I can read data from the server and process it. The problem arose when I moved the same code to a GUI application. In this case, the same code returns an error. Specifically, I get a QNetworkAccessManager ssl handshake fails error. I remind you that it is the same code, the same version of QT (6.7.0) only with an added GUI to the application. For clarity, I am using the latest MacOS system. Please help, has anyone encountered that the same code returns errors after being moved to a GUI application?
-
I know you might ask for the code, but I have it on the company server and can only upload it tomorrow.
-
Hi,
When you say move, do you mean you kept it as is or did you refactor it ?