update: using MouseArea instead of changing popupType

This commit is contained in:
MrMirDan
2026-02-12 12:14:37 +02:00
parent 21a8898151
commit 949144c7e5

View File

@@ -4,7 +4,10 @@ import QtQuick.Controls
Menu {
property var textObj
popupType: Popup.Item
popupType: Popup.Native
onAboutToShow: blocker.enabled = true
onClosed: blocker.enabled = false
MenuItem {
text: qsTr("C&ut")
@@ -28,4 +31,11 @@ Menu {
enabled: textObj.length > 0
onTriggered: textObj.selectAll()
}
MouseArea {
id: blocker
z: 2
enabled: false
preventStealing: true
}
}