<?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[Dynamic listview from json]]></title><description><![CDATA[<p dir="auto">Hi everyone, I was wondering if someone could help me create a listview with a QAbstractListModel attached that reads a json file that contains an array of (equal) objects and automatically sets the column names from the keys of the objects and the rows from the content of the array. Is is possible to do that? I can't wrap my head around on how to structure it</p>
]]></description><link>https://forum.qt.io/topic/158003/dynamic-listview-from-json</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 22:18:41 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/158003.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Aug 2024 09:06:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dynamic listview from json on Thu, 01 Aug 2024 10:15:24 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://github.com/benlau/qsyncable" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/benlau/qsyncable</a> does that</p>
]]></description><link>https://forum.qt.io/post/806333</link><guid isPermaLink="true">https://forum.qt.io/post/806333</guid><dc:creator><![CDATA[GrecKo]]></dc:creator><pubDate>Thu, 01 Aug 2024 10:15:24 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamic listview from json on Thu, 01 Aug 2024 09:44:07 GMT]]></title><description><![CDATA[<p dir="auto">You might wanna have a look at the <a href="https://doc.qt.io/qt-6/qtdoc-demos-documentviewer-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">document viewer example</a>.<br />
It reads any JSON file and displays it in a tree model.<br />
If your JSON is always a specific array, you can easily plumb that into a list view.</p>
]]></description><link>https://forum.qt.io/post/806329</link><guid isPermaLink="true">https://forum.qt.io/post/806329</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Thu, 01 Aug 2024 09:44:07 GMT</pubDate></item></channel></rss>