aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-03-28 06:21:42 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2022-03-28 23:42:16 +0200
commit864dade139242f8ef8bb208d899fa8264cfb91f3 (patch)
tree90c002ecb2d88778ea5aa8831f12bec3323e383a /examples
parent9ebd7caa207ad211dc20df66868d53adb0f6a3c7 (diff)
Sidebar example: nest content in MouseArea to restore hover propagation
After 499828b855d125ac236917f6ed01d8f1e7d88505 if you want a MouseArea underneath some other contents to receive propagated hover events, the content must be inside the MouseArea, not a sibling. HoverHandler still does not have this restriction (handlers cannot have items as children, and the handler is not considered a sibling: it's an event-handling facet added to the item in which it's declared). Pick-to: 6.3 6.2 Change-Id: I5ac31d982e429ac002cb0bd7ae9c071ab927032b Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/pointerhandlers/sidebar.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/quick/pointerhandlers/sidebar.qml b/examples/quick/pointerhandlers/sidebar.qml
index 29727b5684..e5cfee21c9 100644
--- a/examples/quick/pointerhandlers/sidebar.qml
+++ b/examples/quick/pointerhandlers/sidebar.qml
@@ -212,12 +212,12 @@ Rectangle {
hoverEnabled: true
cursorShape: Qt.ClosedHandCursor
anchors.fill: parent
- }
- Loader {
- objectName: "bottomSidebarLoader"
- sourceComponent: buttonsAndStuff
- anchors.fill: parent
+ Loader {
+ objectName: "bottomSidebarLoader"
+ sourceComponent: buttonsAndStuff
+ anchors.fill: parent
+ }
}
Text {