diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2021-04-19 22:03:39 +0200 |
---|---|---|
committer | Szabolcs David <davidsz@inf.u-szeged.hu> | 2021-04-21 16:09:55 +0200 |
commit | b7511264954d0e81f980195f3a9c4e5e18da9d41 (patch) | |
tree | ec4aff3b581d17d5de44df77e532c33be8e0f87e /examples | |
parent | 0b7510efcde8220e55b0cef5fefc1db76a3bd99a (diff) |
Docs: Suggest to use higher DPI for printing
When printing with the default resolution of QPrinter, rasterized images
of pages are just too small to produce sharp result. Documentation of
QPrinter also mentions that the default ScreenResolution should
only be used for drafts.
Change-Id: I5fe93f7985d16b1126cf2bbcb9b4a4ddbdfd21f2
Task-number: QTBUG-92185
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/webenginewidgets/printme/printhandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/webenginewidgets/printme/printhandler.cpp b/examples/webenginewidgets/printme/printhandler.cpp index d8c4fc177..b1eb037e6 100644 --- a/examples/webenginewidgets/printme/printhandler.cpp +++ b/examples/webenginewidgets/printme/printhandler.cpp @@ -107,6 +107,7 @@ void PrintHandler::printPreview() return; m_inPrintPreview = true; QPrinter printer; + printer.setResolution(300); QPrintPreviewDialog preview(&printer, m_page->view()); connect(&preview, &QPrintPreviewDialog::paintRequested, this, &PrintHandler::printDocument); |