Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 683 Bytes

QException.md

File metadata and controls

11 lines (10 loc) · 683 Bytes

QException 异常

  • QUnhandledException

  • Q: What is benefit of inheriting from this class?

    • This is the corresponding part of the documentation:
      • The QException class provides a base class for exceptions that can transferred across threads.
    • In addition to that, it integrates pretty well with the QtConcurrent feature set, including QFuture.
  • Q: What if we throw a class that does not inherit from the QException class?

    • This is the corresponding part of the documentation:
      • If you throw an exception that is not a subclass of QException, the Qt functions will throw a QUnhandledException in the receiver thread.