<?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 get ListModel elements in C++]]></title><description><![CDATA[<p dir="auto">@ListModel{<br />
objectName: "list"<br />
ListElement{<br />
name: "first"<br />
}<br />
ListElement{<br />
name: "second"<br />
}<br />
}<br />
@</p>
<p dir="auto">How can i get it's elements in c++?<br />
I tried to get model by it's name<br />
@ QObject <em>list = object-&gt;findChild&lt;QObject</em>&gt;("list"); @<br />
But i do not know what to do next.</p>
]]></description><link>https://forum.qt.io/topic/5362/how-to-get-listmodel-elements-in-c</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 22:21:03 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/5362.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Apr 2011 07:37:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to get ListModel elements in C++ on Tue, 17 May 2011 11:57:13 GMT]]></title><description><![CDATA[<p dir="auto">you can access to all its children : list-&gt;children()</p>
]]></description><link>https://forum.qt.io/post/88354</link><guid isPermaLink="true">https://forum.qt.io/post/88354</guid><dc:creator><![CDATA[apap_]]></dc:creator><pubDate>Tue, 17 May 2011 11:57:13 GMT</pubDate></item></channel></rss>