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 do I get drive letter and drive number from Qt?

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 616 Views
  • 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.
  • G Offline
    G Offline
    graniteDev
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

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

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      3

      • Login

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