return false;
QPrinter printer(QPrinter::ScreenResolution);
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
- printer.setOutputFormat(QPrinter::PostScriptFormat);
-#else
printer.setOutputFormat(QPrinter::PdfFormat);
-#endif
printer.setOutputFileName(fileName);
QPainter painter;
if (!painter.begin(&printer))