<?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[How to set path to Memory card in qt?]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<pre><code>    I am using latest qt version 4.7,where i developed a application on Audio Recording. I need to set the path to memory card(ie,mass memory),I have seen links based on carbide "link":http://www.developer.nokia.com/Community/Wiki/TSS000220_-_Making_your_Symbian_C++_applications_run_on_S60_devices_from_all_manufacturers 
</code></pre>
<p dir="auto">But could not find any solution for this latest version.</p>
<p dir="auto">Can anyone help me out in finding this!!</p>
<p dir="auto">This is what i tried this using two methods but i am clueless.... But the audio file gets stored in simulator ,,but not in desired memory card location!!!</p>
<p dir="auto">@AudioBuffer::AudioBuffer()<br />
{<br />
audioSource = new QAudioCaptureSource();<br />
capture = new QMediaRecorder(audioSource);</p>
<pre><code>    QAudioEncoderSettings audioSettings;
    audioSettings.setCodec("audio/vorbis");
    audioSettings.setQuality(QtMultimediaKit::HighQuality);
    capture-&gt;setEncodingSettings(audioSettings);
</code></pre>
<p dir="auto">//        QSystemStorageInfo::DriveType drvType = storageInfo-&gt;typeForDrive(textValue);<br />
capture-&gt;setOutputLocation(QUrl::fromLocalFile("test.wav"));</p>
<p dir="auto">//        FileName path = PathInfo::MemoryCardRootPath();<br />
//        path.Append( PathInfo::SoundsPath() );</p>
<pre><code>     QFile file;
     QDir::setCurrent("/tmp");
     file.setFileName("test.wav");
     QDir::setCurrent("/home");
     file.open(QIODevice::ReadOnly);
</code></pre>
<p dir="auto">}@</p>
]]></description><link>https://forum.qt.io/topic/14232/how-to-set-path-to-memory-card-in-qt</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 21:14:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/14232.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Feb 2012 07:12:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to set path to Memory card in qt? on Wed, 22 Feb 2012 12:33:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<pre><code>I mean, i need to change the path for storing the audio file to phone-memory or memory card.
</code></pre>
<p dir="auto">When i run it on computer,the audio file is created at simulator. So,When i create a sis file and install it on the mobile,the audio file should be stored in (phone or mass memory). Did u get my point???</p>
]]></description><link>https://forum.qt.io/post/129974</link><guid isPermaLink="true">https://forum.qt.io/post/129974</guid><dc:creator><![CDATA[Naufal]]></dc:creator><pubDate>Wed, 22 Feb 2012 12:33:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to set path to Memory card in qt? on Mon, 20 Feb 2012 11:40:44 GMT]]></title><description><![CDATA[<p dir="auto">well i don't really get what's the problem, but the mass media drive is E:(in case it exists), the phone memory is C:, and the memory card is F: (if there's a mass memory drive else it's E: )</p>
]]></description><link>https://forum.qt.io/post/129664</link><guid isPermaLink="true">https://forum.qt.io/post/129664</guid><dc:creator><![CDATA[Mabrouk]]></dc:creator><pubDate>Mon, 20 Feb 2012 11:40:44 GMT</pubDate></item><item><title><![CDATA[Reply to How to set path to Memory card in qt? on Mon, 20 Feb 2012 07:18:04 GMT]]></title><description><![CDATA[<p dir="auto">Target Platform : symbian (qt-quick)<br />
Device used is : E7,C7</p>
]]></description><link>https://forum.qt.io/post/129616</link><guid isPermaLink="true">https://forum.qt.io/post/129616</guid><dc:creator><![CDATA[Naufal]]></dc:creator><pubDate>Mon, 20 Feb 2012 07:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to set path to Memory card in qt? on Mon, 20 Feb 2012 07:16:09 GMT]]></title><description><![CDATA[<p dir="auto">what is ur target platform?</p>
]]></description><link>https://forum.qt.io/post/129615</link><guid isPermaLink="true">https://forum.qt.io/post/129615</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 20 Feb 2012 07:16:09 GMT</pubDate></item></channel></rss>