I\'m using Qt 5.15.0. I have a try-catch block as follows:
try { //some code here } catch(std::exception& e) { QTimer::singleShot(0,[e](){ throw e;}