Is there any method like this,the chart on pdf is never distortion when zoom in anyhow.
vfchartView->setRenderHint(QPainter::TextAntialiasing);
vfchartView->show();
QPdfWriter writer("chart.pdf");
writer.setPageSize(QPagedPaintDevice::A4);
QPainter painter(&writer);
QRect chartRect = vfchartView->viewport()->rect();
QRect pdfRect = QRect(500, 500, 5000, 5000);
vfchartView->render(&painter, pdfRect, chartRect,Qt::KeepAspectRatio);