fix(cursor): fixed cursor type at opened context menu

This commit is contained in:
Mitternacht822
2026-02-16 18:28:02 +04:00
parent 949144c7e5
commit 84987b59cf
3 changed files with 6 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ Rectangle {
MouseArea {
id: parentMouse
anchors.fill: parent
cursorShape: Qt.IBeamCursor
cursorShape: contextMenu.opened ? Qt.ArrowCursor : Qt.IBeamCursor
onClicked: textArea.forceActiveFocus()
hoverEnabled: true
@@ -94,6 +94,7 @@ Rectangle {
wrapMode: Text.Wrap
ContextMenu.menu: ContextMenuType {
id: contextMenu
textObj: textArea
}

View File

@@ -34,7 +34,7 @@ Rectangle {
MouseArea {
id: parentMouse
anchors.fill: parent
cursorShape: Qt.IBeamCursor
cursorShape: contextMenu.opened ? Qt.ArrowCursor : Qt.IBeamCursor
onClicked: textArea.forceActiveFocus()
hoverEnabled: true
@@ -80,6 +80,7 @@ Rectangle {
wrapMode: Text.Wrap
ContextMenu.menu: ContextMenuType {
id: contextMenu
textObj: textArea
}

View File

@@ -135,6 +135,7 @@ Item {
}
ContextMenu.menu: ContextMenuType {
id: contextMenu
textObj: textField
}
@@ -159,7 +160,7 @@ Item {
MouseArea {
anchors.fill: root
cursorShape: Qt.IBeamCursor
cursorShape: contextMenu.opened ? Qt.ArrowCursor : Qt.IBeamCursor
hoverEnabled: true