<?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 refer to a value in a text in QML List Element]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have a list element like this:</p>
<pre><code>    ListElement {
        type: "boolean"
        label: "Change the option"
        func3text: "OFF"
        func3subtext: "The change is disabled"
        func4text: "ON"
        func4subtext: "The change is enabled for  (some value)"
        target: "value"
    }
</code></pre>
<p dir="auto">How can I write<br />
func4subtext: ("The change is enabled for %d", value)</p>
<p dir="auto">as we write in C++, to refer to a changing value in a text</p>
]]></description><link>https://forum.qt.io/topic/98507/how-to-refer-to-a-value-in-a-text-in-qml-list-element</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 09:37:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/98507.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Jan 2019 13:18:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to refer to a value in a text in QML List Element on Thu, 17 Jan 2019 15:03:18 GMT]]></title><description><![CDATA[<p dir="auto">Alright!<br />
Solved, thank you!</p>
]]></description><link>https://forum.qt.io/post/505463</link><guid isPermaLink="true">https://forum.qt.io/post/505463</guid><dc:creator><![CDATA[mamoud]]></dc:creator><pubDate>Thu, 17 Jan 2019 15:03:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to refer to a value in a text in QML List Element on Thu, 17 Jan 2019 09:58:07 GMT]]></title><description><![CDATA[<p dir="auto">var el = id.get(index) where id is identity property of model object. Refer Qt Assistant as well.</p>
]]></description><link>https://forum.qt.io/post/505384</link><guid isPermaLink="true">https://forum.qt.io/post/505384</guid><dc:creator><![CDATA[dheerendra]]></dc:creator><pubDate>Thu, 17 Jan 2019 09:58:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to refer to a value in a text in QML List Element on Thu, 17 Jan 2019 09:53:14 GMT]]></title><description><![CDATA[<p dir="auto">Thank you!<br />
How can get() method be used,?</p>
]]></description><link>https://forum.qt.io/post/505375</link><guid isPermaLink="true">https://forum.qt.io/post/505375</guid><dc:creator><![CDATA[mamoud]]></dc:creator><pubDate>Thu, 17 Jan 2019 09:53:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to refer to a value in a text in QML List Element on Mon, 14 Jan 2019 14:43:26 GMT]]></title><description><![CDATA[<p dir="auto">I don't think you will be able to do like this. Based on some condition get the existing values using get(..) method and set value back. This is the only option I feel.</p>
]]></description><link>https://forum.qt.io/post/504602</link><guid isPermaLink="true">https://forum.qt.io/post/504602</guid><dc:creator><![CDATA[dheerendra]]></dc:creator><pubDate>Mon, 14 Jan 2019 14:43:26 GMT</pubDate></item></channel></rss>