Priority: P2: Important
Affects Version/s: 4.8.4, 5.1.1
Fix Version/s: 5.2.0 RC1
Component/s: GUI: Printing
Commits:Manual test code: 2e8ad02b7d10c100dcd9d559b019c474fa4b8a29 (5.2 RC), Fix 3396ba5612c1047d1b21a90c4996dff848c00114
The code below can be used to reproduce the issue:
The printed paperSize should be custom
The paperSize is set to A4
The issue is present on Linux and Windows, but the outcome is different.
With the code above (printed to a file), the created pdf has the right size on Qt 4.8, but the dialog shows incorrect width and height. However, on Qt 5.x the created pdf has the width and height shown in the printdialog.
Both Qt 4.8 and Qt 5 the size is incorrect
The patch attached should fix the issue on Windows for Qt 4.8.