35 QtConcurrent::blockingMap(list, throwFunction);
55 auto f = QtConcurrent::run([] {
throw MyException {}; });
57 }
catch (
const QUnhandledException &e) {
60 std::rethrow_exception(e.exception());
void raise() const override
In your QException subclass, reimplement raise() like this:
MyException * clone() const override
In your QException subclass, reimplement clone() like this:
void raise() const override
[2]
MyException * clone() const override
[2]
void wrapInFunction()
[16]
void example(QList< int > &list)
void throwFunction(int num)