<?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[Highlight sizing]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I would like to change the Highlight size (width and height) but I can't change the size it still depends on the delegate size.</p>
<p dir="auto">Here is the my highlight component :</p>
<pre><code>        Component {
            id: highlight
            Rectangle {
                height: 50
                width: 100
                anchors.horizontalCenter: parent.horizontalCenter
                radius: height/6
                color: "#b3b3b3"

            }
        }
</code></pre>
]]></description><link>https://forum.qt.io/topic/94776/highlight-sizing</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 15:29:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/94776.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Sep 2018 13:41:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Highlight sizing on Wed, 19 Sep 2018 14:46:52 GMT]]></title><description><![CDATA[<p dir="auto">@LeLev<br />
Yes when I use this code which is the one you gave me :</p>
<pre><code>    width: listView.currentItem.width/10; height: listView.currentItem.height
</code></pre>
<p dir="auto">The Highlight start like that :<br />
<img src="https://ddgobkiprc33d.cloudfront.net/0065827d-8151-47bc-a094-35b246066bcc.png" alt="0_1537367201700_a72b6ccc-4022-4474-a858-c62697dac821-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">then it turn like that with an animation :<br />
<img src="https://ddgobkiprc33d.cloudfront.net/bc3c0626-945d-437f-8051-b94443fa867a.png" alt="0_1537367248883_c9660eff-ee75-4011-b45b-08be78462688-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">At strat it fill the delagate</p>
<p dir="auto">I believe it is because I have to keep the <strong>highlightFollowsCurrentItem</strong> property to true. But if I change this I'll have trouble as soon as the ListView will scroll on the press of one button.<br />
Here is what its looks like :<br />
<img src="https://ddgobkiprc33d.cloudfront.net/7e88c2ac-5a1d-4a50-957c-3308a00b239b.gif" alt="0_1537368401189_bug.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/482367</link><guid isPermaLink="true">https://forum.qt.io/post/482367</guid><dc:creator><![CDATA[DavidM29]]></dc:creator><pubDate>Wed, 19 Sep 2018 14:46:52 GMT</pubDate></item><item><title><![CDATA[Reply to Highlight sizing on Wed, 19 Sep 2018 14:22:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/davidm29">@<bdi>DavidM29</bdi></a> really ? ...  are you sure ? the code i send you in your previous post :</p>
<p dir="auto"><a href="https://forum.qt.io/topic/94722/handle-the-highlight-of-listview/20">https://forum.qt.io/topic/94722/handle-the-highlight-of-listview/20</a></p>
<p dir="auto">you can fully customize the highlight.</p>
]]></description><link>https://forum.qt.io/post/482365</link><guid isPermaLink="true">https://forum.qt.io/post/482365</guid><dc:creator><![CDATA[ODБOï]]></dc:creator><pubDate>Wed, 19 Sep 2018 14:22:56 GMT</pubDate></item></channel></rss>