Markus Dahlbokum | 14 Aug 15:07

Printing the QwtPlot

Hello,

when I print my plot to a printer or to a file the generated postscript data 
has a bounding box with x > y. This leads to the problem that the contents do 
not fit on a A4 sized page. If you manually rotate the plot by adding 'rotate 
90'  to the ps data and invert the bounding box you can print the file 
correctly. Is there a possibility to set this from Qwt?

Thank you.
Markus

P.S.: Setting the QPrinter.orientation to Landscape does't solve the problem!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Uwe Rathmann | 14 Aug 16:44

Re: Printing the QwtPlot

On Thursday 14 August 2008 15:08, Markus Dahlbokum wrote:

> when I print my plot to a printer or to a file the generated postscript
> data has a bounding box with x > y. 

QwtPlot::print(QPaintDevice &paintDev, ...) calculates the box from the device 
metrics and calls QwtPlot::print(QPainter *, const QRect &, ...). If you want 
something different call it directly with the box you like.

Uwe

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane