override cursor when chat text content hovered (only global cursor works on chat bubble) #LINQT-2364

This commit is contained in:
Gaelle Braud 2026-01-23 11:21:43 +01:00
parent be5a7fa4e7
commit f52d2212bb

View file

@ -67,7 +67,11 @@ TextEdit {
propagateComposedEvents: true
hoverEnabled: true
scrollGestureEnabled: false
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
onContainsMouseChanged: {
if (containsMouse) UtilsCpp.setGlobalCursor(Qt.IBeamCursor)
else UtilsCpp.restoreGlobalCursor()
}
cursorShape: mainItem.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
acceptedButtons: Qt.LeftButton
onPressed: (mouse) => {
// if(!keepLastSelection) {