Hi,
I'm trying to save a QDocument as pdf file on a specific location.
toPdf.
setOutputFormat(QPrinter::PdfFormat);
toPdf.setOutputFileName("test.pdf");
QPrinter toPdf;
toPdf.setOutputFormat(QPrinter::PdfFormat);
toPdf.setOutputFileName("test.pdf");
To copy to clipboard, switch view to plain text mode
works, but when I'm trying to write a pdf file to a certain directory, i.e. home directory:
toPdf.
setOutputFormat(QPrinter::PdfFormat);
toPdf.setOutputFileName("~/test.pdf");
QPrinter toPdf;
toPdf.setOutputFormat(QPrinter::PdfFormat);
toPdf.setOutputFileName("~/test.pdf");
To copy to clipboard, switch view to plain text mode
it doesn't work and I get this message:
QPainter::begin(): Returned false
To copy to clipboard, switch view to plain text mode
Does anyone know how to solve this or if there is another way of doing this?
Thanks!
Bookmarks