<?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[How to show tooltip over custom QQuickPaintedItem?]]></title><description><![CDATA[<p dir="auto">I've created a custom component  that extends QQuickPaintedItem.  Now  I'm trying to figure out how to add a tooltip to it for when the user hovers the mouse above it.  I've  added at ToolTip as a child, but it is not displaying when the program is run.  What's the right way to do this?</p>
<pre><code>                PianorollKeyboard {
                    id: keyboardComponent
                    width: 120
                    Layout.fillHeight: true

                    centerY: scrollViewY.center
                    noteHeight: vertZoom.value
                    
                    ToolTip {
                        visible: hovered
                        text: "Foo"
                    }

                    Component.onCompleted: {
                        load()
                    }
                }
</code></pre>
]]></description><link>https://forum.qt.io/topic/139617/how-to-show-tooltip-over-custom-qquickpainteditem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 03:08:38 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139617.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Sep 2022 15:31:55 GMT</pubDate><ttl>60</ttl></channel></rss>