From ab1b525f124c59ca444df939f468696e78cac661 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Sat, 12 Mar 2022 18:31:21 +0800 Subject: [PATCH] printreviewdialog change default printer --- mainwindow.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cc b/mainwindow.cc index b120755c..13b72033 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -3333,8 +3333,8 @@ void MainWindow::on_pageSetup_triggered() void MainWindow::on_printPreview_triggered() { - QPrinter printer; - QPrintPreviewDialog dialog( &printer, this ); +// QPrinter printer; + QPrintPreviewDialog dialog( &getPrinter(), this ); connect( &dialog, SIGNAL( paintRequested( QPrinter * ) ), this, SLOT( printPreviewPaintRequested( QPrinter * ) ) );