<?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[QTreeView&#x2F;QFileSystemModel to show directory structure]]></title><description><![CDATA[<p dir="auto">I made a treeView/QFileSystemModel to show directory structure.<br />
When I set root index as following,<br />
QTreeView *treeView = new QTreeView(this);<br />
treeView-&gt;setRootIndex(treeView-&gt;model()-&gt;index(-1,-1));<br />
it show only drive letters as you can see the left hand side of <a href="http://imgur.com/a/PVFiu" target="_blank" rel="noopener noreferrer nofollow ugc">this picture</a><br />
How can I show the directory structure like the right hand side of picture?</p>
]]></description><link>https://forum.qt.io/topic/74917/qtreeview-qfilesystemmodel-to-show-directory-structure</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 08:04:19 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/74917.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Jan 2017 20:26:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QTreeView&#x2F;QFileSystemModel to show directory structure on Sun, 08 Jan 2017 13:25:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/samdol">@<bdi>samdol</bdi></a><br />
same answer since you asked exactly this question the <a href="https://forum.qt.io/topic/72194/windows-tree-view">last time 3 months ago</a>.<br />
You even copied the same text and picture... no need to double post. If you still have a question use the old thread.</p>
<p dir="auto">CLOSING</p>
]]></description><link>https://forum.qt.io/post/368147</link><guid isPermaLink="true">https://forum.qt.io/post/368147</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Sun, 08 Jan 2017 13:25:27 GMT</pubDate></item></channel></rss>