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. c++ (connect ) coding of QT "error" SIGNAL
Forum Updated to NodeBB v4.3 + New Features

c++ (connect ) coding of QT "error" SIGNAL

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 249 Views 2 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by Anonymous_Banned275
    #1

    Is there a generic / general QT documentation or example of C++ code,
    on how to code / handle "error" SIGNAL?

    Majority of C++ code examples do not include examples of error handling.
    Many discussions are not using "connect on error " - instead they
    adapt standard C/C++ error handling - sometime with very convoluted code.

    Pl45m4P 1 Reply Last reply
    0
    • A Anonymous_Banned275

      Is there a generic / general QT documentation or example of C++ code,
      on how to code / handle "error" SIGNAL?

      Majority of C++ code examples do not include examples of error handling.
      Many discussions are not using "connect on error " - instead they
      adapt standard C/C++ error handling - sometime with very convoluted code.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @AnneRanch said in c++ (connect ) coding of QT "error" SIGNAL:

      Is there a generic / general QT documentation or example of C++ code,
      on how to code / handle "error" SIGNAL?

      If a Qt class has any error handlers or errorOccurred signals (like QTcpSocket for example), feel free to use them :)
      There is not only the one way to do this. Nobody forces you to connect to the error signal. But it's recommended for a reason.

      Majority of C++ code examples do not include examples of error handling

      If you are talking about the Qt examples... yes...they are just examples, which should give the user an overview how a module works and what can be done by using it. There is only minimalistic code.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      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