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. QNetworkReply error signal
Qt 6.11 is out! See what's new in the release blog

QNetworkReply error signal

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.6k Views
  • 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.
  • HojjatJafaryH Offline
    HojjatJafaryH Offline
    HojjatJafary
    wrote on last edited by
    #1

    I don't understand the documentation describing QNetworkReply error signal:

    "This signal is emitted when the reply detects an error in processing. The finished() signal will probably follow, indicating that the connection is over."

    What is the meaning of probably?

    jsulmJ 1 Reply Last reply
    0
    • HojjatJafaryH HojjatJafary

      I don't understand the documentation describing QNetworkReply error signal:

      "This signal is emitted when the reply detects an error in processing. The finished() signal will probably follow, indicating that the connection is over."

      What is the meaning of probably?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @HojjatJafary I think finished() signal will not be emitted always in case of error depending on what exactly went wrong. But I don't know exactly. For that you would need to read Qt source code or ask Qt developers.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • HojjatJafaryH Offline
        HojjatJafaryH Offline
        HojjatJafary
        wrote on last edited by
        #3

        Is this mean I must always subscribe for the error signal to check the status of the connection? because the will be a finished() signal in all situations.

        jsulmJ 1 Reply Last reply
        0
        • HojjatJafaryH HojjatJafary

          Is this mean I must always subscribe for the error signal to check the status of the connection? because the will be a finished() signal in all situations.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @HojjatJafary It is ALWAYS a good idea to connect to error() signals - you never know what can go wrong and when. Error handling is one the most important topics in software development at least if you want to write high quality software.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • HojjatJafaryH Offline
            HojjatJafaryH Offline
            HojjatJafary
            wrote on last edited by
            #5

            Thank you @jsulm.

            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