Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.3, 5.12.3, 5.14.1
-
None
-
-
af0edfbc7 (dev), b63f92bb0 (6.7), e6204b12c (6.6)
Description
When setting QApplication::setAttribute(Qt::AA_EnableHighDpiScaling) and using a QCursor with custom bitmap and bitmap mask, the cursor appears ugly (and sometimes completely messed up for larger resolutions for the bmp), the size is incorrect (scaled way too big) and the hotspot is not in the correct location (as if it were a small-sized cursor).
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QBitmap bit = QBitmap("crossMinus.bmp");
QBitmap bitMask = QBitmap(bit.width(), bit.height());
bitMask.fill(Qt::color0);
QCursor* s_crossCursor = new QCursor(bit, bitMask, -1, -1);
window->setCursor(*s_crossCursor);