Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
5.2.0
-
Windows only
Description
Run the below code,
#include <QPrinter> #include <QDebug> #include <QPrintDialog> #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); QPrinter printer; QPrintDialog printDialog(&printer, NULL); if (printDialog.exec() == QDialog::Accepted) { QRect pageRect = printer.pageRect(); qDebug() << pageRect; } return 0; }
The pageRect value (0,0,-1,-1)
It showed correct values in Qt5.1
Attachments
Issue Links
- is replaced by
-
QTBUG-35500 Printing regression on Windows
- Closed