kswietko
3rd September 2011, 20:44
Hello,
I need to print my QGraphicsView with QGraphicsSvgItem to a postscript/pdf file.
Everything look nice, but my QGraphicsSvgItem is rendering as a raster, not as a vector graphic. Is there any way to change this?
QPrinter printer(QPrinter::HighResolution);
printer.setOutputFormat(QPrinter::PdfFormat);
printer.setOutputFileName(fileName);
updatePrinter(&printer);
thx in advance
Kacper
I need to print my QGraphicsView with QGraphicsSvgItem to a postscript/pdf file.
Everything look nice, but my QGraphicsSvgItem is rendering as a raster, not as a vector graphic. Is there any way to change this?
QPrinter printer(QPrinter::HighResolution);
printer.setOutputFormat(QPrinter::PdfFormat);
printer.setOutputFileName(fileName);
updatePrinter(&printer);
thx in advance
Kacper