From 2e5ca5f70f09be61b4ac003e4264c659514b45fe Mon Sep 17 00:00:00 2001 From: yifang Date: Thu, 27 Jan 2022 00:47:27 +0800 Subject: [PATCH] fix:print preview resolution is too low --- mainwindow.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mainwindow.cc b/mainwindow.cc index 2aeb8b8f..8c1f49b8 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -3409,7 +3409,8 @@ void MainWindow::on_pageSetup_triggered() void MainWindow::on_printPreview_triggered() { - QPrintPreviewDialog dialog( &getPrinter(), this ); + QPrinter printer; + QPrintPreviewDialog dialog( &printer, this ); connect( &dialog, SIGNAL( paintRequested( QPrinter * ) ), this, SLOT( printPreviewPaintRequested( QPrinter * ) ) );