Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.2
-
None
-
Windows 11 based development environment.
Description
My example has an active Popup with modal set to true.
The background rectangle still accepts tap events when using a stylus.
Non-stylus touch events are ignored as expected.
import QtQuick
import QtQuick.Controls
Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")
color: "#FFFFFF"
Button {
id: popupBtn
text: "Show popup"
onClicked:
}
Button {
id: lblBtn
anchors.left: popupBtn.right
text: "Change label"
onClicked:
}
Rectangle {
id: rect
anchors.left: lblBtn.right
color: "#00FF00"
width: 30
height: 30
TapHandler {
// grabPermissions: PointerHandler.CanTakeOverFromAnything
onTapped:
}
}
Popup {
id: myPopup
anchors.centerIn: parent
visible: false
modal: true
closePolicy: Popup.NoAutoClose
width: 300
height : 200
dim: true
Rectangle {
anchors.fill : parent
color: "#F0F0F0"
Text
Button {
id: closebutton
text: "Close me"
onClicked:
}
TapHandler
}
}
Label
}