print preview blurry

This commit is contained in:
xiaoyifang 2022-03-29 20:47:41 +08:00
parent 913e4128ca
commit 3ea8fd78ef

View file

@ -3336,8 +3336,8 @@ void MainWindow::on_pageSetup_triggered()
void MainWindow::on_printPreview_triggered() void MainWindow::on_printPreview_triggered()
{ {
// QPrinter printer; QPrinter printer;
QPrintPreviewDialog dialog( &getPrinter(), this ); QPrintPreviewDialog dialog( &printer, this );
connect( &dialog, SIGNAL( paintRequested( QPrinter * ) ), connect( &dialog, SIGNAL( paintRequested( QPrinter * ) ),
this, SLOT( printPreviewPaintRequested( QPrinter * ) ) ); this, SLOT( printPreviewPaintRequested( QPrinter * ) ) );