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. Get the information about the drives
Forum Updated to NodeBB v4.3 + New Features

Get the information about the drives

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 272 Views 3 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.
  • O Offline
    O Offline
    oneeyeman1
    wrote on last edited by
    #1

    Hi, ALL,
    In Qt there is https://doc.qt.io/qt-6/qstorageinfo.html#details. However it give the information about mounted drives only and even then it doesn't give the appropriate icon.

    Is there a class which I can use to get the information about the physical drives and the icon associated for the device?

    Thank you.

    Pl45m4P 1 Reply Last reply
    0
    • O oneeyeman1

      Hi, ALL,
      In Qt there is https://doc.qt.io/qt-6/qstorageinfo.html#details. However it give the information about mounted drives only and even then it doesn't give the appropriate icon.

      Is there a class which I can use to get the information about the physical drives and the icon associated for the device?

      Thank you.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @oneeyeman1

      Hi,

      there is this class:

      • https://doc.qt.io/qt-6/qfileiconprovider.html#details

      However icons are a platform and system design specific thing and I think there is no way in Qt to access correct the icon you see in your OS' device manager.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • O Offline
        O Offline
        oneeyeman1
        wrote on last edited by
        #3

        Thank you.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          oneeyeman1
          wrote on last edited by
          #4

          @Pl45m4 ,
          What about getting the complete device list and not just mounted one?

          Thank you.

          Christian EhrlicherC SGaistS 2 Replies Last reply
          0
          • O oneeyeman1

            @Pl45m4 ,
            What about getting the complete device list and not just mounted one?

            Thank you.

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @oneeyeman1 said in Get the information about the drives:

            @Pl45m4 ,
            What about getting the complete device list and not just mounted one?

            Such tasks are out of the scope of Qt.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            1
            • O oneeyeman1

              @Pl45m4 ,
              What about getting the complete device list and not just mounted one?

              Thank you.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @oneeyeman1 you might want to check KDE's Solid framework.

              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

              • Login

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