Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
None
-
5.1.0
-
None
Description
import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Layouts 1.0 SplitView { width: 200 height: 200 Rectangle { Layout.minimumWidth: 50 height: 200 color: 'blue' MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor hoverEnabled: true onContainsMouseChanged: console.warn('blue', containsMouse) } } Rectangle { Layout.minimumWidth: 50 height: 200 color: 'green' MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor hoverEnabled: true onContainsMouseChanged: console.warn('green', containsMouse) } } }
- Click on the splitter
- Drag left or right
- Notice that the cursor turns to the pointing hand (even though the MouseArea still never thinks it contains the mouse)
Expected: the cursor should remain the same as when the drag started as long as the mouse button is held.
This isn't a Controls issue, it was just easiest to show a practical example using SplitView.
Attachments
Issue Links
- relates to
-
QTBUG-90681 QML DropArea does not update mouse cursor shape correctly
- Reported
-
QTBUG-41045 MouseArea's cursorShape effective only after cursor moves
- Closed
For Gerrit Dashboard: QTBUG-33168 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
63900,2 | don't update item-specific cursor if mouse button is pressed | stable | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |
87889,1 | don't update item-specific cursor if mouse button is pressed | 5.3 | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |