<?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[QFileInfo]]></title><description><![CDATA[<pre><code>    QFileInfo fileInfo("/run/media/A");     //  "/run/media/A" is my sd card path
fileInfo.setCaching(false); 
QDateTime buildtime = fileInfo.lastModified();
return buildtime.toString();
</code></pre>
<p dir="auto">using this code i am able to get the lastModified time of newly created file but not of the file which is modified?</p>
]]></description><link>https://forum.qt.io/topic/142651/qfileinfo</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 00:05:06 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/142651.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Feb 2023 04:55:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QFileInfo on Fri, 03 Feb 2023 08:13:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sajad-ganie">@<bdi>Sajad-Ganie</bdi></a><br />
This should get the correct last modified time of an existing file being modified as well as one just created, provided the OS supports that.  How do you <em>know</em> that an external file has had its last modified time changed at the instant this is called?  Don't forget that if, for example, another process has the file open for update the last modified time may well not be altered until the file is closed by that process.</p>
]]></description><link>https://forum.qt.io/post/746113</link><guid isPermaLink="true">https://forum.qt.io/post/746113</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 03 Feb 2023 08:13:30 GMT</pubDate></item><item><title><![CDATA[Reply to QFileInfo on Fri, 03 Feb 2023 06:24:36 GMT]]></title><description><![CDATA[<p dir="auto">Unable to understand the question.</p>
]]></description><link>https://forum.qt.io/post/746096</link><guid isPermaLink="true">https://forum.qt.io/post/746096</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Fri, 03 Feb 2023 06:24:36 GMT</pubDate></item></channel></rss>