<?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[Detecting mounted drives on Linux and Mac OS X]]></title><description><![CDATA[<p dir="auto">I’m using QDir::drives() to get the list of drives. It works great on Windows, but on Linux and Mac it only returns a single item “/”, i. e. root. It is expected behavior, but how can I get a list of drives on Mac and Linux?</p>
]]></description><link>https://forum.qt.io/topic/31551/detecting-mounted-drives-on-linux-and-mac-os-x</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 15:01:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/31551.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Sep 2013 19:48:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Detecting mounted drives on Linux and Mac OS X on Tue, 03 Sep 2013 20:02:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Yes it is expected. You can find it in "QDir's documentation":<a href="http://qt-project.org/doc/qt-4.8/qdir.html#drives" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/qdir.html#drives</a></p>
<p dir="auto">You might be interested in the usage of KDE's "solid" library for that</p>
]]></description><link>https://forum.qt.io/post/194051</link><guid isPermaLink="true">https://forum.qt.io/post/194051</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 03 Sep 2013 20:02:00 GMT</pubDate></item></channel></rss>