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. How to find exter drives (pen drive and hard disk ans all infomation relates )

How to find exter drives (pen drive and hard disk ans all infomation relates )

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.3k 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.
  • V Offline
    V Offline
    vivekmalik2466
    wrote on last edited by
    #1

    How to find exter drives (pen drive and hard disk ans all infomation relates )
    i am using qt to do this i am able to find all drives with (

    @foreach( QFileInfo drive, QDir::drives() )
    {
    qDebug() << "Drive: " << drive.absolutePath();

        QDir dir = drive.dir();
        dir.setFilter( QDir::Dirs );
    
        foreach( QFileInfo rootDirs, dir.entryInfoList() )
          qDebug() << "  " << rootDirs.fileName();
      }
    

    @

    )but unable to distinguishes different between is the drive is fixed or remove able.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Check out "QSystemStorageInfo":http://doc.qt.nokia.com/qtmobility/qsystemstorageinfo.html from QtMobility. Works on the desktop too.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vivekmalik2466
        wrote on last edited by
        #3

        no its not working for desktop

        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