Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
4.7.4
-
None
-
Mac 10.6.8
Description
If you set the paper size to a non-metric paper (i.e. US Letter), QPrinter::setPaperSize silently fails.
main.cpp
#include <QtGui> int main(int argc, char ** argv) { QApplication app(argc, argv); QPrinter printer; printer.setPaperSize(QPrinter::A4); qDebug() << printer.paperSize() << printer.paperSize(QPrinter::Millimeter); printer.setPaperSize(QPrinter::A5); qDebug() << printer.paperSize() << printer.paperSize(QPrinter::Millimeter); printer.setPaperSize(QPrinter::Letter); // Absolutely nothing happens qDebug() << printer.paperSize() << printer.paperSize(QPrinter::Millimeter); return app.exec(); }
I have confirmed that the printer supports US Letter paper in the print dialog.