Hello,
I am trying to print out some pictures and documents in my program.
I read the documentation "Printing with Qt". In the doc , it says:
"The rectangle returned by pageRect() usually lies inside the rectangle returned by paperRect(). You do not need to take the positions and sizes of these area into account when using a QPainter with a QPrinter as the underlying paint device; the origin of the painter's coordinate system will coincide with the top-left corner of the page rectangle, and painting operations will be clipped to the bounds of the drawable part of the page."
However, when I am doing print jobs, I find that the actual origin is the top-left of paper rectangle.
I construct QPrinter object by passing QPrinterInfo to the constructor.
Then , I construct the QPainter by passing QPrinter object to the QPainter's constructor.

Does anybody have ideas on this issue?