1
Requests | Пожелания / report does not allow change to application
« on: October 24, 2020, 04:10:18 pm »
Good afternoon, A query, when showing the report with previewReport () it does not let me return to my application until I close the report, how can you solve this.
This is the code of my button that shows the report, as I said before, when the report is shown it no longer lets me return to my application, if not until closing the report, any suggestions would be appreciated.
This is the code of my button that shows the report, as I said before, when the report is shown it no longer lets me return to my application, if not until closing the report, any suggestions would be appreciated.
Code: [Select]
void Widget::on_pushButton_2_clicked()
{
QFile fileName(":/rpt/Reporteusuarios.lrxml");
if(!fileName.open(QIODevice::ReadOnly|QIODevice::Text)){
QMessageBox::critical(this,qApp->applicationName(),
QString("Error al abrir el reporte.\n").append(
fileName.errorString()));
return;
}
mReport=new LimeReport::ReportEngine(this);
mReport->dataManager()->setReportVariable("DATABASE",db.strConexion());
mReport->loadFromFile(fileName.fileName());
mReport->previewReport();
}