QTimer single shot, passing lambda with exception in capture

前端 未结 0 885
面向向阳花
面向向阳花 2020-12-18 02:09

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;}         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题