The QException class provides a base class for exceptions that can be transferred across threads.
The QException class provides a base class for exceptions that can be transferred across threads.
Qt Concurrent supports throwing and catching exceptions across thread boundaries, provided that the exception inherits from QException and implements two helper functions:
class MyException : public QException
{
public:
void raise() const { throw *this; }
MyException *clone() const { return new MyException(*this); }
};