Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.3, 5.2.0 RC1
-
None
-
Windows
Description
If QPrinter::setPrinterName() is called after orientation has been set, the orientation is initialized to default on Windows. On Linux the set orientation will be kept even after setting the printer name.
The following code can be used to reproduce the issue:
QPrinter pr;
pr.setPageSize(QPrinter::A4);
pr.setOrientation(QPrinter::Landscape);
pr.setPrinterName(pn); // name of the used printer
qDebug() << pr.orientation();
Attachments
Issue Links
- is required for
-
QTBUG-25384 QtPrintSupport - Windows issues
-
- Open
-
For Gerrit Dashboard: QTBUG-26008 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
32520,8 | Ensure that printer orientation is preserved | master | qt/qtbase | Status: MERGED | +2 | 0 |
72344,2 | QPrinter - Fix OutputFormat when no printers | stable | qt/qtbase | Status: MERGED | +2 | 0 |