Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0
-
None
-
-
b1493678fc295765ce93e565c5194e860e746436 (qt/qtdeclarative/dev) a81c111dd056efbd37b6267871367f3d975a1078 (qt/qtdeclarative/5.15)
Description
In the code example, there is a red rectangle with HoverHandler. The margins are set to 20 and cursorShape:Qt.SplitHCursor. The cursor is changing the shape only withing rectangle, I think it should change within margins.
import QtQuick 2.15 import QtQuick.Window 2.15 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Rectangle { anchors.centerIn: parent width: 50 height: 50 color: "red" HoverHandler { margin: 20 cursorShape: Qt.SplitHCursor // Is hovered working on margin but cursorShape not changing onHoveredChanged: { console.log("Hovered", hovered) } } } }
Attachments
Issue Links
- resulted from
-
QTBUG-68073 Pointer Handlers: support setting the cursor somehow, during hover
-
- Closed
-
For Gerrit Dashboard: QTBUG-85303 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
306091,5 | Change the cursor within HoverHandler.margin | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
306114,2 | Change the cursor within HoverHandler.margin | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
306133,2 | Update the window cursor on mouse release | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
306195,1 | Update the window cursor on mouse release | 5.15 | qt/qtdeclarative | Status: ABANDONED | +2 | 0 |
401029,3 | Update the window cursor on mouse release | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |