Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
5.9.4
-
None
-
Windows 10 64 bit
Description
If the Override high DPI scaling behavior is set to System in the application's Compatibility settings, any custom QCursor loaded from a pixmap draws too small on a monitor with DPI scaling above 100%. The same cursor draws correctly with different monitor DPI scalings if the Override is not done.
We are setting these:
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
The cursor is being set like this:
QPixmap pixmap(cursorPath);
pixmap.setDevicePixelRatio(1.75);
return QCursor(pixmap);