<?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[Fine-tuning branch indicator]]></title><description><![CDATA[<p dir="auto">In general, branch indicators behave like this:</p>
<p dir="auto"><img src="https://i.stack.imgur.com/jqN0l.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">I'd like to further fine-tune images inside my branch indicator by <a href="https://doc.qt.io/qt-5/qml-qtquick-controls-styles-treeviewstyle.html" target="_blank" rel="noopener noreferrer nofollow ugc">TreeViewStyle</a>  like this:</p>
<pre><code>TreeView {
    ...
    style: TreeViewStyle {
        indentation: 25
        branchDelegate: Item {
            visible: true // ** visible
            width: 20
            height: 10
            Image {
                // I want this image to be visible only if item has children:
                visible: styleData.hasChildren
                width: 10
                height: 10
                ...
                source: "images/arrow.png"
                transform: Rotation {
                    origin.x: 10 / 2
                    origin.y: 10 / 2
                    angle: styleData.isExpanded ? 0 : -90
                }
            }
            Image {
                // I want this image to be always visible:
                visible: true
                width: 10
                height: 10
                ...
            }
        }
    }
    ...
}
</code></pre>
<p dir="auto">My above visibility setup is NOT taking effect. Am I missing something?</p>
]]></description><link>https://forum.qt.io/topic/107286/fine-tuning-branch-indicator</link><generator>RSS for Node</generator><lastBuildDate>Tue, 01 Sep 2026 21:27:22 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/107286.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Sep 2019 14:21:51 GMT</pubDate><ttl>60</ttl></channel></rss>