[Qt-interest] Trouble with QPrintPreviewWidget

David Boddie david.boddie at nokia.com
Wed Dec 10 14:39:39 CET 2008


Marcelo Estanislau Geyer wrote:

> I understand perfectly that there may be differences between the
> systems. Passing QPrinter: HighResolution in constructor
> QPrinter got a satisfactory result.
>  These results:
> pageRect: QRect(0,0 9917x14033)
> logicalDpiX and logicalDpiY: 1200
> 
> The values is refer in the same notebooks (kubuntu in 1440x900 and Fedora
> in 1024x768). The paperSize is A4.

Sorry, my mistake. I meant to ask what those values are for the actual
widgets. Even so, I would expect that the QPrintPreviewWidget would handle
the scaling correctly, so perhaps this is a bug. Can you say which version
of Qt you're using on each system?

> As the report is that I am generating complex, I have some special care? I
> could have surprises in future? I thought of designing the rectangle with
> fixed values based on the resolution currently supported (Logical DPI)

I would expect this to work. If you print as PDF or PostScript and view the
output in a viewer application, does the output look correct?

David
-- 
David Boddie
Senior Technical Writer
Nokia, Qt Software



More information about the Qt-interest-old mailing list