Qt.OpenHandCursor and Qt.ClosedHandCursor Look The Same?
Unsolved
QML and Qt Quick
-
I'm changing cursorshape in a MouseArea based on mouse button press. If I use either OpenHandCursor or ClosedHandCursor and something completely different such as SplitVCursor I get the visual behavior I expect (the cursor changes).
If I use OpenHandCursor and ClosedHandCursor, the cursor never changes.
TLDR: OpenHandCursor and ClosedHandCursor appear to be identical. I would say they both appear to be a "closed hand".
I am using Qt 6, but do not know if this is only a Qt 6 issue, so I put it in this forum.
Can anyone confirm they see the same thing?
-
// These icons are different MouseArea { acceptedButtons: Qt.LeftButton | Qt.RightButton anchors.fill: parent preventStealing: true cursorShape: pressedButtons & Qt.RightButton ? Qt.ClosedHandCursor : Qt.ForbiddenCursor }
// The icon is the same pressed or released. Given the behavior above, this can only mean the two icons are identical when they should not be. MouseArea { acceptedButtons: Qt.LeftButton | Qt.RightButton anchors.fill: parent preventStealing: true cursorShape: pressedButtons & Qt.RightButton ? Qt.ClosedHandCursor : Qt.OpenHandCursor }