<?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[QFile and QDir equivalent in QML]]></title><description><![CDATA[<p dir="auto">Is there any specific reason those don't exist?</p>
]]></description><link>https://forum.qt.io/topic/4730/qfile-and-qdir-equivalent-in-qml</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 02:05:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/4730.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Mar 2011 22:51:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QFile and QDir equivalent in QML on Thu, 31 Mar 2011 23:51:15 GMT]]></title><description><![CDATA[<p dir="auto">Yes, maybe some sort of high level file access would be useful. What sort of access are you thinking about? Things like getting the file name and permissions for a file?</p>
<p dir="auto">(Also, if you have some concrete ideas in mind it might be useful to file a suggestion at <a href="http://bugreports.qt.nokia.com" target="_blank" rel="noopener noreferrer nofollow ugc">bugreports.qt.nokia.com</a> so that they can be considered for future API additions.)</p>
]]></description><link>https://forum.qt.io/post/82202</link><guid isPermaLink="true">https://forum.qt.io/post/82202</guid><dc:creator><![CDATA[blam]]></dc:creator><pubDate>Thu, 31 Mar 2011 23:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to QFile and QDir equivalent in QML on Thu, 31 Mar 2011 22:59:59 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the link. that's useful for some cases.</p>
<p dir="auto">So, maybe not exact exposure of QFile to QML, but how about more high level file access?</p>
<p dir="auto">It's perhaps right that C++ is more efficient, but to me it doesn't necessarily justify not to have any kind of local file access API in QML. Also, if efficiency is important I probably use some database system instead of raw file system.</p>
]]></description><link>https://forum.qt.io/post/82201</link><guid isPermaLink="true">https://forum.qt.io/post/82201</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 31 Mar 2011 22:59:59 GMT</pubDate></item><item><title><![CDATA[Reply to QFile and QDir equivalent in QML on Thu, 31 Mar 2011 00:45:00 GMT]]></title><description><![CDATA[<p dir="auto">QFile support seems unlikely since file reading/writing would be most efficiently done in C++.</p>
<p dir="auto">In terms of support for reading the contents of directories, currently there is "FolderListModel":<a href="http://doc.qt.nokia.com/4.7-snapshot/src-imports-folderlistmodel.htmlFolderListModel" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/4.7-snapshot/src-imports-folderlistmodel.htmlFolderListModel</a> (part of the experimental Qt.labs.folderlistmodel module) which can be used to display directory listings. This has also been discussed here: <a href="http://developer.qt.nokia.com/forums/viewthread/3460/" target="_blank" rel="noopener noreferrer nofollow ugc">http://developer.qt.nokia.com/forums/viewthread/3460/</a></p>
]]></description><link>https://forum.qt.io/post/81932</link><guid isPermaLink="true">https://forum.qt.io/post/81932</guid><dc:creator><![CDATA[blam]]></dc:creator><pubDate>Thu, 31 Mar 2011 00:45:00 GMT</pubDate></item></channel></rss>