Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.2.0
-
None
-
Mingw-w64
Description
When running the following program
#include <QApplication>
#include <QPainter>
#include <QPrinter>
#include <QPrintDialog>
#include <QDebug>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPrinter printer(QPrinter::HighResolution);
printer.setPageMargins(.25, .25, .25, .25, QPrinter::Inch);
QPrintDialog printDialog (&printer);
if (printDialog.exec() == QDialog::Accepted)
}
The output is:
paperName "Letter"
paperRect QRect(0,0 -8x-8)
Resolution 600
pageRect QRect(150,150 -308x-308)
pageSizeMM QSizeF(210, 297)
pageSize 30
the QRects have negative sizes.
Attachments
Issue Links
- is required for
-
QTBUG-25380 QtPrintSupport - Page Layout Issues
- Open
- relates to
-
QTBUG-36348 Application asserts on printing with custom pageSizes
- Closed