From 3ea8fd78efb2133232964a2979e7feca314f657a Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Tue, 29 Mar 2022 20:47:41 +0800 Subject: [PATCH] print preview blurry --- mainwindow.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cc b/mainwindow.cc index ef7e8972..ab994131 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -3336,8 +3336,8 @@ void MainWindow::on_pageSetup_triggered() void MainWindow::on_printPreview_triggered() { -// QPrinter printer; - QPrintPreviewDialog dialog( &getPrinter(), this ); + QPrinter printer; + QPrintPreviewDialog dialog( &printer, this ); connect( &dialog, SIGNAL( paintRequested( QPrinter * ) ), this, SLOT( printPreviewPaintRequested( QPrinter * ) ) );