Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0 Beta1
-
None
-
Mac OS X 10.8.5
-
-
4e4b2d67010f1fc90a0227c36adab56a3e1ce679
Description
Build and run the following code on Mac. Select a different printer from the default one. Notice the debug print out still gets the default printer name.
#include <QPrinter> #include <QPrinterInfo> #include <QPrintDialog> #include <QDebug> #include <QApplication> int main(int argc, char *argv[]) { QApplication app(argc, argv); QPrinter p; QPrintDialog d(&p); if(d.exec()) { QPrinterInfo pInfo(p); qDebug() << pInfo.printerName() << p.printerName() << p.pageLayout(); } return 0; }