((CuteReport::ReportPreview*)reportPreview)->run();
connect(m_coreReport,&CuteReport::ReportCore::rendererDone,this, [=](const QString & reportUrl, bool success){ waitLoop.quit(); });