<?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 can I bind properties of select Listview delegate with other component properties?]]></title><description><![CDATA[<p dir="auto">Hi. I have some doubts about how it is the best approach to the next situation:</p>
<p dir="auto">I have a dynamic model C++ that inherits from QAbstractItemModel as usual.</p>
<pre><code>{
name: item1
myproperty1: 42
myproperty2: 50
myproperty3: 42
myproperty4: 50
}
...
{
name: item2
...
}
</code></pre>
<p dir="auto">I represent this model in a Listview in qml. In the Delegate, I just only represent the name of the item.</p>
<p dir="auto">I also have a component named <em>OtherComponent</em> that shows the properties of the delegate when I click on it. This mechanism is implemented using a signal. The <em>OtherComponent</em> component is the same for all items, just change the value of the respective item.</p>
<p dir="auto">The problem is the binding of the properties. When I click item1, the property1 stays in 42 and never update it, and so on. If I clicked the item2, for example, and return to item1, the property1 changed from 42 to another number.</p>
<p dir="auto">How I can bind the properties of the selected delegate with the OtherComponent properties?</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/add34a1e-2927-49be-836d-e9152d62f428.png" alt="da6c0232-cef6-4aad-bbd8-49acf3ffe223-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/107404/how-can-i-bind-properties-of-select-listview-delegate-with-other-component-properties</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 11:01:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/107404.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Oct 2019 02:20:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can I bind properties of select Listview delegate with other component properties? on Tue, 27 Apr 2021 01:33:05 GMT]]></title><description><![CDATA[<p dir="auto">For the record, I used custom getters of the model, with the current index of the Listmodel.</p>
]]></description><link>https://forum.qt.io/post/656618</link><guid isPermaLink="true">https://forum.qt.io/post/656618</guid><dc:creator><![CDATA[oria66]]></dc:creator><pubDate>Tue, 27 Apr 2021 01:33:05 GMT</pubDate></item></channel></rss>