Simulating Printer Resolution in QGraphicsView

  • I have set up a QGraphicsScene with some Items that are used to design a page for printing.

    Some of the GraphicsItems use functions for Rendering that are aware of the QPaintDevice resolution, i.e. they use this information to paint something in a fixed height in millimeters.

    Is there a way to simulate different resolution for the QPaintDevice, so that the resolution changes along with the worldTransform when zooming?

    The only way I can think of would be to implement a new QPaintDevice and a new QRenderEngine that paint with these new parameters on the already existing Painter. Can anyone think of a better solution?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.