Hi,
I have been using QCP for a couple of years, and it works really well. A few days ago I have been looking at supporting high dpi monitors, and noticed that QCP2 beta has support for that. I gave it a try and it mostly works, but there are a few problems.
One problem is that the text at the axis ticks seems to be drawn at lower resolution and scaled up. Here is a screenshot that shows the issue with a pixelratio of 2:
http://home.vedder.se/tmp/axis.png
The other problem is minor and easy to fix. It is that devicePixelRatio is not initialized correctly when it is not an integer and has to be set manually. Fixing that can be done by changing the line
setBufferDevicePixelRatio(QWidget::devicePixelRatio());
to (notice the F in the end)
setBufferDevicePixelRatio(QWidget::devicePixelRatioF());
It would be great if you can fix the problem with the axis text or let me know if there is a workaround.
A tip for experimenting with the devicePixelRatio is putting this in the main function before the QApplication object is created:
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); qputenv("QT_SCALE_FACTOR", "1.5");
Keep up the good work!
Benjamin