Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. GUI vs Console - QNetworkAccessManager ssl handshake fails error
Forum Updated to NodeBB v4.3 + New Features

GUI vs Console - QNetworkAccessManager ssl handshake fails error

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 189 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Piotrek102
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Piotrek102
      wrote on last edited by
      #2

      I know you might ask for the code, but I have it on the company server and can only upload it tomorrow.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        When you say move, do you mean you kept it as is or did you refactor it ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved