Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
4.7.0
-
None
-
Mac OS X 10.6.7
Description
Whenever you switch the output format of a QPrinter on a Mac and the printer orientation is in landscape mode, the width and height of the paper size are switched.
main.cpp
#include <QtGui> int main(int argc, char ** argv) { QApplication app(argc, argv); QPrinter printer; printer.setOrientation(QPrinter::Landscape); printer.setPaperSize(QSizeF(8.5, 11), QPrinter::Inch); qDebug() << printer.orientation() << printer.paperSize(QPrinter::Inch); // 1 QSizeF(11, 8.5) printer.setOutputFormat(QPrinter::PdfFormat); qDebug() << printer.orientation() << printer.paperSize(QPrinter::Inch); // 1 QSizeF(11, 8.5) printer.setOutputFormat(QPrinter::NativeFormat); qDebug() << printer.orientation() << printer.paperSize(QPrinter::Inch); // 1 QSizeF(8.5, 11) }
Attachments
Issue Links
- is required for
-
QTBUG-25380 QtPrintSupport - Page Layout Issues
- Open
-
QTBUG-25383 QtPrintSupport - macOS Issues
- Closed