I know that I can disable DPI scaling for the entire application by calling QApplication::setAttribute( Qt::AA_DisableHighDpiScaling );
before creating the QApplication instance. But, is it possible to set a QPainter/QGraphicsScene/QGraphicsView to ignore DPI?
I want all the widgets in my application to behave normally. I just want to draw a grid, in a view, without DPI scaling. That setting fixes the grid, but it prevents the widgets from scaling.
Note: I cannot easily just clobbering the scale of the graphical items, because I don't know the exact DPI. I haven't been able to find a value, anywhere, that explains exactly how QPainter draws. It seems to be quite magical. I also don't want to try to do that, because of the potential numeric instability of just tacking on additional factors. I'd like to remove a factor, temporarily...