<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[TapHandler and stacked Panes]]></title><description><![CDATA[<p dir="auto">Hi all -</p>
<p dir="auto">Consider the following example:</p>
<pre><code>import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Window {
    width: 640
    height: 480
    visible: true
    Pane {
        height: 100
        width: 100
        background: Rectangle { color: 'red' }
        Pane {
            anchors.centerIn: parent
            height: 50
            width: 50
            background: Rectangle { color: 'blue' }
        }
        TapHandler {
            onTapped: console.log("tapped!")
        }
    }
}
</code></pre>
<p dir="auto">I want the TapHandler to operate on all of the outer Pane, but as coded, it doesn't accept clicks on the inner Pane. Any ideas on how to fix this?</p>
<p dir="auto">Thanks...</p>
]]></description><link>https://forum.qt.io/topic/157498/taphandler-and-stacked-panes</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 15:30:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/157498.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Jun 2024 00:13:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TapHandler and stacked Panes on Fri, 13 Sep 2024 20:30:11 GMT]]></title><description><![CDATA[<p dir="auto">Evidently, there's no automatic way to get a control to pass a signal onto its parent control. So, I'll have to be careful about which QML objects I choose when constructing a complex control.</p>
]]></description><link>https://forum.qt.io/post/809518</link><guid isPermaLink="true">https://forum.qt.io/post/809518</guid><dc:creator><![CDATA[mzimmers]]></dc:creator><pubDate>Fri, 13 Sep 2024 20:30:11 GMT</pubDate></item><item><title><![CDATA[Reply to TapHandler and stacked Panes on Mon, 01 Jul 2024 14:49:38 GMT]]></title><description><![CDATA[<p dir="auto">I was able to obviate this problem by using Rectangle instead of Pane, but I'm still curious as to whether there's a way to enable the entire "outer" control (including the area of the inner Pane) to receive the TapHandler signal.</p>
]]></description><link>https://forum.qt.io/post/803903</link><guid isPermaLink="true">https://forum.qt.io/post/803903</guid><dc:creator><![CDATA[mzimmers]]></dc:creator><pubDate>Mon, 01 Jul 2024 14:49:38 GMT</pubDate></item></channel></rss>