I'm an engineer using Qwt to plot data (1,000's plots). I have a requirement that when printed on paper it have following grid design

- A major division every 2cm with a solid line.
- A sub division every 1 cm with same grid line type as the major.
- A sub division every 0.5cm with a densely dotted line type.
- A sub division every mm with a loosely dotted line type.

I'm using a QPrinter with a specific setPaperSize (which varies based on the plot) exporting the plots as PDFs.

First is there a "simple" way to get this grid? I'm guessing not, but it wouldn't be the first I've started to reinvent the wheel.

Assuming no, is there a way to "print preview" the plot without sending it to the PDF file? i.e. Try to gather the rendered canvas size, based on the paper dimensions from the Qwt:rint command.

Also, is there going to be some limitation that will prevent me from creating these 4 grid levels? Or should I look at setting the canvas image to this fixed pattern?

Regards,
Ryan