Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to set path to Memory card in qt?
Forum Updated to NodeBB v4.3 + New Features

How to set path to Memory card in qt?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Naufal
    wrote on last edited by
    #1

    Hi All,

        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 
    

    But could not find any solution for this latest version.

    Can anyone help me out in finding this!!

    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!!!

    @AudioBuffer::AudioBuffer()
    {
    audioSource = new QAudioCaptureSource();
    capture = new QMediaRecorder(audioSource);

        QAudioEncoderSettings audioSettings;
        audioSettings.setCodec("audio/vorbis");
        audioSettings.setQuality(QtMultimediaKit::HighQuality);
        capture->setEncodingSettings(audioSettings);
    

    // QSystemStorageInfo::DriveType drvType = storageInfo->typeForDrive(textValue);
    capture->setOutputLocation(QUrl::fromLocalFile("test.wav"));

    // FileName path = PathInfo::MemoryCardRootPath();
    // path.Append( PathInfo::SoundsPath() );

         QFile file;
         QDir::setCurrent("/tmp");
         file.setFileName("test.wav");
         QDir::setCurrent("/home");
         file.open(QIODevice::ReadOnly);
    

    }@

    Regards,
    Naufal.A

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      what is ur target platform?

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Naufal
        wrote on last edited by
        #3

        Target Platform : symbian (qt-quick)
        Device used is : E7,C7

        Regards,
        Naufal.A

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mabrouk
          wrote on last edited by
          #4

          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: )

          1 Reply Last reply
          0
          • N Offline
            N Offline
            Naufal
            wrote on last edited by
            #5

            Hi,

            I mean, i need to change the path for storing the audio file to phone-memory or memory card.
            

            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???

            Regards,
            Naufal.A

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved