I can confirm that this code does the right thing under Linux with Qt 5.2.0.
With MSVC 2010 Qt 5.1.1 the program does the right thing with the "Microsoft XPS Writer" virtual printer.
Ditto for MingW and Qt5.1.1.
I do not have Qt 5.2.0 on this machine or a "real" printer attached. I used A4 paper size (otherwise exactly your code).
Have you tried using "Microsoft XPS Writer" as your printer to eliminate a printer driver curiosity?
Have you tried an earlier Qt version to eliminate a Qt 5.2-ism?
BTW: Thank you for taking the time to ask a smart question.




Reply With Quote

Bookmarks