Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. File system format of an SD Card in Qt?
Forum Updated to NodeBB v4.3 + New Features

File system format of an SD Card in Qt?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 3.4k 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.
  • S Offline
    S Offline
    Stoned Jesus
    wrote on 12 Mar 2013, 07:24 last edited by
    #1

    I am new in Qt. I am working on an app where I need to display the file format(e.g. FAT32, NTFS) of the SD card that is connected to my PC.

    Is their a Qt API that can help me achieve the result??? I looked through QFSFileEngine and QAbstractFileEngine but didnt find anything related to File format.

    Thanks you :)

    --
    Thanks & Regards,
    Stoned Jesus

    1 Reply Last reply
    0
    • A Offline
      A Offline
      amccarthy
      wrote on 12 Mar 2013, 07:49 last edited by
      #2

      Qt doesn't provide any API to get the filesystem type. You will need to use native APIs.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Stoned Jesus
        wrote on 12 Mar 2013, 08:10 last edited by
        #3

        Thank you. Could you please elaborate on which API's I can use :)
        [quote author="amccarthy" date="1363074584"]Qt doesn't provide any API to get the filesystem type. You will need to use native APIs.[/quote]

        --
        Thanks & Regards,
        Stoned Jesus

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 12 Mar 2013, 09:03 last edited by
          #4

          This really depends on the underlying OS, i.e linux you can read information from sysfs (There are other possibilities like Solid from KDE), OS X has the File System Events api (they might have something else), Windows has the GetVolumeInformation api etc..

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 12 Mar 2013, 09:07 last edited by
            #5

            Please take a look at "QtDriveInfo":https://gitorious.org/qdrive and "QtStorageInfo":http://qt.gitorious.org/qt/qtsystems classes.

            (Z(:^

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Stoned Jesus
              wrote on 12 Mar 2013, 09:23 last edited by
              #6

              I tried QDriveInfo sample code but it throws an error:

              Cannot Open #include <QDriveInfo>
              [quote author="sierdzio" date="1363079248"]Please take a look at "QtDriveInfo":https://gitorious.org/qdrive and "QtStorageInfo":http://qt.gitorious.org/qt/qtsystems classes.[/quote]

              --
              Thanks & Regards,
              Stoned Jesus

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sierdzio
                Moderators
                wrote on 12 Mar 2013, 09:27 last edited by
                #7

                It's not built into Qt, it's a separate project that tries to become part of Qt, but will probably be rejected due to QStorageInfo being available in Qt Mobility.

                So, you have to look for some sore of readme on how to install and use it on your machine.

                (Z(:^

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Stoned Jesus
                  wrote on 12 Mar 2013, 09:35 last edited by
                  #8

                  I am looking into it.Thank you :)

                  [quote author="sierdzio" date="1363080444"]It's not built-in Qt, it's a separate project that tries to become part of Qt, but will probably be rejected due to QStorageInfo available in Qt Mobility.

                  So, you have to look for some sore of readme on how to install and use it on your machine.[/quote]

                  --
                  Thanks & Regards,
                  Stoned Jesus

                  1 Reply Last reply
                  0

                  1/8

                  12 Mar 2013, 07:24

                  • Login

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