<?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[Is their a Qt API which differentiates between Removable Drives and a SD Card?]]></title><description><![CDATA[<p dir="auto">I am working on a Qt application where I have a QTreewidget which displays the removable drives and local drives. I have set an icon each for local drives and a separate icon for removable drive.</p>
<p dir="auto">I have 2 removable drives... One is a USB and other is a SDCard. Both are appearing as Removable drives in my treewidget with the same icon. I want to set 2 different icons. An SD icon for SD card and Removable drive icon for USB drive.</p>
<p dir="auto">Is their a Qt API which can let me know whether the connected device is a USB drive(Removable Drive) or a SDCard(Using a sd card reader)?? Please help :)</p>
]]></description><link>https://forum.qt.io/topic/28377/is-their-a-qt-api-which-differentiates-between-removable-drives-and-a-sd-card</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 04:00:32 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/28377.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Jun 2013 11:22:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is their a Qt API which differentiates between Removable Drives and a SD Card? on Mon, 17 Jun 2013 11:54:33 GMT]]></title><description><![CDATA[<p dir="auto">not i am aware of.<br />
Only as i already said: "QFileIconProvider::icon()":<a href="http://qt-project.org/doc/qt-4.8/qfileiconprovider.html#icon-2" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/qfileiconprovider.html#icon-2</a></p>
]]></description><link>https://forum.qt.io/post/183116</link><guid isPermaLink="true">https://forum.qt.io/post/183116</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Mon, 17 Jun 2013 11:54:33 GMT</pubDate></item><item><title><![CDATA[Reply to Is their a Qt API which differentiates between Removable Drives and a SD Card? on Mon, 17 Jun 2013 11:49:08 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for the reply. I am using Qt 4.8. I tried QFSFileEngine but it gives me list of all drives. It doesnt help me to figure out whether the drive is a local or removable.</p>
<p dir="auto">Is their any other APi which can help me out?</p>
<p dir="auto">[quote author="raven-worx" date="1371469532"]you can try to get the "QtSystems":<a href="http://qt.gitorious.org/qt/qtsystems/blobs/dev/src/systeminfo/qstorageinfo.h" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt.gitorious.org/qt/qtsystems/blobs/dev/src/systeminfo/qstorageinfo.h</a> module (Qt5 only). You have to build it manually though, because it is not officially deployed.</p>
<p dir="auto">Alternatively you can get the OS's icon with "QFileIconProvider":<a href="http://qt-project.org/doc/qt-4.8/QFileIconProvider.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/QFileIconProvider.html</a> (passing it the drive path).[/quote]</p>
]]></description><link>https://forum.qt.io/post/183114</link><guid isPermaLink="true">https://forum.qt.io/post/183114</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 17 Jun 2013 11:49:08 GMT</pubDate></item><item><title><![CDATA[Reply to Is their a Qt API which differentiates between Removable Drives and a SD Card? on Mon, 17 Jun 2013 11:45:32 GMT]]></title><description><![CDATA[<p dir="auto">you can try to get the "QtSystems":<a href="http://qt.gitorious.org/qt/qtsystems/blobs/dev/src/systeminfo/qstorageinfo.h" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt.gitorious.org/qt/qtsystems/blobs/dev/src/systeminfo/qstorageinfo.h</a> module (Qt5 only). You have to build it manually though, because it is not officially deployed.</p>
<p dir="auto">Alternatively you can get the OS's icon with "QFileIconProvider":<a href="http://qt-project.org/doc/qt-4.8/QFileIconProvider.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/QFileIconProvider.html</a> (passing it the drive path).</p>
]]></description><link>https://forum.qt.io/post/183111</link><guid isPermaLink="true">https://forum.qt.io/post/183111</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Mon, 17 Jun 2013 11:45:32 GMT</pubDate></item></channel></rss>