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);
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-82434 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
524487,3 | QWindowsCursor: create correct DDB in createBitmapCursor() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
525258,2 | QWindowsCursor: create correct DDB in createBitmapCursor() | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
525525,2 | QWindowsCursor: create correct DDB in createBitmapCursor() | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |