Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.8.0, 5.9.0, 5.9.1, 5.10, 5.11, 5.12
-
None
Description
To trigger this bug, you need:
- multiple displays (the desktop must be extended, not duplicated)
- different scaling settings for the displays (e.g. 125% for the main display and 100% for the secondary) (Windows Settings --> System --> Display --> Scale and layout)
- hide the cursor on a display that isn't the main one (The cursor must be visible inside the window before it is hidden to trigger the bug.)
import QtQuick 2.7 import QtQuick.Controls 2.0 ApplicationWindow { visible: true width: 600 height: 600 Rectangle { width: 500 height: 500 color: "red" MouseArea { anchors.fill: parent cursorShape: Qt.BlankCursor } } }
This doesn't happen, when the cursor is set to an empty one:
QBitmap zero_bitmap(32, 32); zero_bitmap.clear(); QGuiApplication::setOverrideCursor(QCursor(zero_bitmap, zero_bitmap));
The attached image shows a pattern that appeared, when the cursor was hidden on a red background:
- black pixels
- white pixels
- red pixels (transparent cursor pixels)
- cyan pixels (XOR'd red background pixels)