Skip to content

Commit

Permalink
make print preview working for > Qt 5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 10, 2019
1 parent 3342225 commit 0871fb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gui/View3DInventor.cpp
Expand Up @@ -477,7 +477,9 @@ void View3DInventor::printPreview()
{
QPrinter printer(QPrinter::ScreenResolution);
printer.setFullPage(true);
//printer.setPageSize(QPrinter::A3);
#if (QT_VERSION > QT_VERSION_CHECK(5, 9, 0))
printer.setPageSize(QPrinter::A4);
#endif
printer.setOrientation(QPrinter::Landscape);

QPrintPreviewDialog dlg(&printer, this);
Expand Down

0 comments on commit 0871fb4

Please sign in to comment.