<?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[QFileSystemModel with QT for android - permission denied problem]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am using Qt 5.12.3 to make a native file browser for android, using QFileSystemModel. Here is the code that i used :</p>
<p dir="auto">dir_model=new QFileSystemModel(this);<br />
dir_liste=new QTreeView(this);<br />
dir_model-&gt;setRootPath(QDir::rootPath());<br />
dir_liste-&gt;setModel(dir_model);</p>
<p dir="auto">I add permission "android.permission.READ_EXTERNAL_STORAGE" and "android.permission.WRITE_EXTERNAL_STORAGE" to the AndroidManifest.xml file.</p>
<p dir="auto">Also i add manual permission :  Settings-&gt; apps -&gt; permissions -&gt; storage,  for my android app.</p>
<p dir="auto">When i run my app i get an empty :/ directory as in the image below, with the output message :<br />
E <a href="http://libFileDialog.so" target="_blank" rel="noopener noreferrer nofollow ugc">libFileDialog.so</a>: inotify_add_watch(/) failed: (Permission denied)<br />
<img src="https://ddgobkiprc33d.cloudfront.net/3a9e9bcc-9914-40dd-831a-096003af6e06.jpg" alt="0_1563832866396_Screenshot_20190722-235826.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">An other file browser application work fine (picture below) after enabling acces.</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/ff7d2076-8cd8-4184-a8d6-b4911b1f7b4d.jpg" alt="0_1563833026720_Screenshot_20190722-235846.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Is there a way to allow acces permission for the QFileSystemModel to show the storage memory contents ?</p>
]]></description><link>https://forum.qt.io/topic/105240/qfilesystemmodel-with-qt-for-android-permission-denied-problem</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 03:54:12 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/105240.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Jul 2019 22:05:49 GMT</pubDate><ttl>60</ttl></channel></rss>