Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Simulating Printer Resolution in QGraphicsView
ndims last edited by
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?