How do I get drive letter and drive number from Qt?



  • I've seen through different windows commands that I can see either the drive letters, the drive numbers, the partitions, but not all that data in one list that I can parse. Does Qt have tools to help with this?

    I need to be able to programtically verify that my C drive is in the correct drive location. I found QStorageInfo, but that doesn't provide me any information on it's partitions and what drive slot (drive 0, drive 1, etc) they are in.


  • Qt Champions 2017

    Win32 api should help you. I don’t think qt apis exist for this


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.