Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.1.1
-
Windows, Linux
-
5ad1e2578bb3eaa7da6aefa1f96d79947216d509
Description
case 1:
QBitmap bm(filename)
QBitmap mask(maskFilename)
QCursor cursor(bm,mask)
the above ctor will only display the 1st cursor created.
case 2:
QPixmap pm(filename)
QBitmap mask(maskFilename)
pm.setMask(mask)
QCursor cursor(pm)
the above ctor will work.
QWindowsCursor::pixmapWindowCursor(const QCursor&) attempts to find the cursor in its cache using the cursor's pixmap.cacheKey() but this will always be 0 for case 1, so only the 1st bitmap cursor is displayed.
Attachments
Issue Links
- relates to
-
QTBUG-31504 Mac OS: QWidget::setCursor for QCursor created from QPixmap does not work second time
- Closed
- replaces
-
QTBUG-34238 QCursor constructed with a mask is shown precisely as previous shown QCursor with mask
- Closed
-
QTBUG-33741 QWidget::setCursor for QCursor created from QPixmap with mask does not work second time
- Closed