From 8f6d05414050a52209556576816ec10cc041e547 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sat, 22 Aug 2020 14:36:41 +0200 Subject: Set printer resolution You need a better resolution to plot a picture with high resolution... Connection done with a lambda expression thanks to @dirkhh. Signed-off-by: Robert C. Helling (+1 squashed commit) Signed-off-by: Dirk Hohndel --- desktop-widgets/printdialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/printdialog.cpp') diff --git a/desktop-widgets/printdialog.cpp b/desktop-widgets/printdialog.cpp index f0c8f4df8..339914b6a 100644 --- a/desktop-widgets/printdialog.cpp +++ b/desktop-widgets/printdialog.cpp @@ -171,6 +171,7 @@ void PrintDialog::createPrinterObj() // create a new printer object if (!printer) { qprinter = new QPrinter(); + qprinter->setResolution(printOptions.resolution); qprinter->setOrientation((QPrinter::Orientation)printOptions.landscape); printer = new Printer(qprinter, &printOptions, &templateOptions, Printer::PRINT); } -- cgit v1.2.3-70-g09d2